]> Dogcows Code - chaz/openbox/blobdiff - openbox/mouse.c
Merge branch 'backport' into work
[chaz/openbox] / openbox / mouse.c
index f2e13cdf28b54fabb1f6adcaf17a4c6e955bd94a..ae9a6fc299b88a6877e53efeb470e504dab711c5 100644 (file)
 
 #include "openbox.h"
 #include "config.h"
-#include "xerror.h"
 #include "actions.h"
 #include "event.h"
 #include "client.h"
-#include "prop.h"
 #include "grab.h"
 #include "frame.h"
 #include "translate.h"
 #include "mouse.h"
 #include "gettext.h"
+#include "obt/display.h"
 
 #include <glib.h>
 
@@ -207,7 +206,7 @@ void mouse_replay_pointer()
 {
     if (replay_pointer_needed) {
         /* replay the pointer event before any windows move */
-        XAllowEvents(ob_display, ReplayPointer, event_curtime);
+        XAllowEvents(obt_display, ReplayPointer, event_curtime);
         replay_pointer_needed = FALSE;
     }
 }
@@ -287,10 +286,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);
-            junk1 = XGetGeometry(ob_display, e->xbutton.window,
+            obt_display_ignore_errors(TRUE);
+            junk1 = XGetGeometry(obt_display, e->xbutton.window,
                                  &wjunk, &junk1, &junk2, &w, &h, &b, &ujunk);
-            xerror_set_ignore(FALSE);
+            obt_display_ignore_errors(FALSE);
             if (junk1) {
                 if (e->xbutton.x >= (signed)-b &&
                     e->xbutton.y >= (signed)-b &&
This page took 0.024587 seconds and 4 git commands to generate.