]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus.c
make an obt_root() macro
[chaz/openbox] / openbox / focus.c
index 0d6af4eea8be5f9a6d7ffc65372df513c00bae4c..7105aa41cd6022d23992d19d77a94ef0a748bd1f 100644 (file)
 #include "group.h"
 #include "focus_cycle.h"
 #include "screen.h"
-#include "prop.h"
 #include "keyboard.h"
 #include "focus.h"
 #include "stacking.h"
+#include "obt/prop.h"
 
 #include <X11/Xlib.h>
 #include <glib.h>
@@ -91,8 +91,7 @@ void focus_set_client(ObClient *client)
     /* set the NET_ACTIVE_WINDOW hint, but preserve it on shutdown */
     if (ob_state() != OB_STATE_EXITING) {
         active = client ? client->window : None;
-        PROP_SET32(RootWindow(obt_display, ob_screen),
-                   net_active_window, window, active);
+        OBT_PROP_SET32(obt_root(ob_screen), NET_ACTIVE_WINDOW, WINDOW, active);
     }
 }
 
This page took 0.022973 seconds and 4 git commands to generate.