xosd_wait_until_no_display — Suspend execution until the XOSD window is hidden
#include <xosd.h>
int xosd_wait_until_no_display(
xosd *osd)
;
xosd_wait_until_no_display suspends execution of the calling program until the XOSD window is no-longer displayed because a timeout, set by xosd_set_timeout(3xosd), has expired. This behavior can be emulated by removing the timeout for the window, calling xosd_show(3xosd), sleeping, and calling xosd_hide(3xosd).
The XOSD window that is being waited on.
On success, a zero is returned. On error, -1 is returned and xosd_error is set to indicate the reason for the error.
A string describing the error, if one occurred.
There are no known bugs with xosd_wait_until_no_display. However, the calling program can deadlock by removing the timeout and calling xosd_wait_until_no_display. Bug reports can be sent to <xosd@ignavus.net>.
The XOSD library was originally written by André Renaud, and is currently maintained by Tim Wright. This document was written by Michael JasonSmith.
xosd_create(3xosd), xosd_display(3xosd), xosd_set_timeout(3xosd), xosd_show(3xosd), xosd_hide(3xosd).