X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fmouse.c;h=782ea62cb1579321a1aefd8aff846932996d9677;hb=5960d27b1c35c58d3c1731c71c44b9c61328a34d;hp=dbd48695277042f6caead446271b2c51434cd6ae;hpb=1492bd0e7d92b3c7c1ca6adfe46dab4b8c2d3fed;p=chaz%2Fopenbox diff --git a/openbox/mouse.c b/openbox/mouse.c index dbd48695..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 @@ -142,7 +142,7 @@ static void grab_all_clients(gboolean grab) mouse_grab_for_client(it->data, grab); } -void mouse_unbind_all() +void mouse_unbind_all(void) { gint i; GSList *it; @@ -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 &&