]> Dogcows Code - chaz/openbox/blobdiff - openbox/frame.c
remove the ob_root var, its redundant of what Xlib already provides
[chaz/openbox] / openbox / frame.c
index decebbce85581d2819b8f1416c79dbbc0b722ac7..82e7f90b12dcb68aa9c6366e5c86ba3b91d05e99 100644 (file)
@@ -48,7 +48,8 @@ ObFrame *frame_new()
     mask = CWOverrideRedirect | CWEventMask;
     attrib.event_mask = FRAME_EVENTMASK;
     attrib.override_redirect = TRUE;
-    self->window = createWindow(ob_root, mask, &attrib);
+    self->window = createWindow(RootWindow(ob_display, ob_screen),
+                                mask, &attrib);
 
     mask = 0;
     self->plate = createWindow(self->window, mask, &attrib);
@@ -395,7 +396,8 @@ void frame_release_client(ObFrame *self, ObClient *client)
     } else {
        /* according to the ICCCM - if the client doesn't reparent itself,
           then we will reparent the window to root for them */
-       XReparentWindow(ob_display, client->window, ob_root,
+       XReparentWindow(ob_display, client->window,
+                        RootWindow(ob_display, ob_screen),
                        client->area.x,
                        client->area.y);
     }
@@ -582,7 +584,7 @@ ObFrameContext frame_context(ObClient *client, Window win)
 {
     ObFrame *self;
 
-    if (win == ob_root) return OB_FRAME_CONTEXT_ROOT;
+    if (win == RootWindow(ob_display, ob_screen)) return OB_FRAME_CONTEXT_ROOT;
     if (client == NULL) return OB_FRAME_CONTEXT_NONE;
     if (win == client->window) return OB_FRAME_CONTEXT_CLIENT;
 
This page took 0.025797 seconds and 4 git commands to generate.