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).
On success, a zero is returned. On error, -1 is returned and xosd_error is set to indicate the reason for the error.
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>.