diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-07-23 20:55:19 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-20 01:36:54 -0500 |
| commit | a2f5a826a1ed79102cd59a9ef17724fb90afe86b (patch) | |
| tree | 37f4ed0e023b30fcef567b259b79d3f4b7b8e0f5 /openbox/mouse.c | |
| parent | 452627a51ce38229533dfe5d8eeb877b0918d02c (diff) | |
move the xerror handling into the libobt
Diffstat (limited to 'openbox/mouse.c')
| -rw-r--r-- | openbox/mouse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/mouse.c b/openbox/mouse.c index 66615585..782ea62c 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -19,7 +19,6 @@ #include "openbox.h" #include "config.h" -#include "xerror.h" #include "actions.h" #include "event.h" #include "client.h" @@ -29,6 +28,7 @@ #include "translate.h" #include "mouse.h" #include "gettext.h" +#include "obt/display.h" #include <glib.h> @@ -257,10 +257,10 @@ void mouse_event(ObClient *client, XEvent *e) Window wjunk; guint ujunk, b, w, h; /* this can cause errors to occur when the window closes */ - xerror_set_ignore(TRUE); + obt_display_ignore_errors(ob_display, TRUE); junk1 = XGetGeometry(ob_display, e->xbutton.window, &wjunk, &junk1, &junk2, &w, &h, &b, &ujunk); - xerror_set_ignore(FALSE); + obt_display_ignore_errors(ob_display, FALSE); if (junk1) { if (e->xbutton.x >= (signed)-b && e->xbutton.y >= (signed)-b && |
