#include "dock.h"
#include "actions.h"
#include "client.h"
-#include "xerror.h"
#include "prop.h"
#include "config.h"
#include "screen.h"
#include "extensions.h"
#include "translate.h"
#include "ping.h"
+#include "obt/display.h"
#include <X11/Xlib.h>
#include <X11/Xatom.h>
Window win, root;
gint i;
guint u;
- xerror_set_ignore(TRUE);
+ obt_display_ignore_errors(ob_display, TRUE);
if (XGetInputFocus(ob_display, &win, &i) != 0 &&
XGetGeometry(ob_display, win, &root, &i,&i,&u,&u,&u,&u) != 0 &&
root != RootWindow(ob_display, ob_screen))
else
ob_debug_type(OB_DEBUG_FOCUS,
"Focus went to a black hole !\n");
- xerror_set_ignore(FALSE);
+ obt_display_ignore_errors(ob_display, FALSE);
/* nothing is focused */
focus_set_client(NULL);
} else {
/* we are not to be held responsible if someone sends us an
invalid request! */
- xerror_set_ignore(TRUE);
+ obt_display_ignore_errors(ob_display, TRUE);
XConfigureWindow(ob_display, window,
e->xconfigurerequest.value_mask, &xwc);
- xerror_set_ignore(FALSE);
+ obt_display_ignore_errors(ob_display, FALSE);
}
#ifdef SYNC
else if (extensions_sync &&