diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-07-10 19:01:41 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-07-10 19:01:41 +0000 |
| commit | 35418ca0fcd3fd28ef579f4435b8bad3b7c87f04 (patch) | |
| tree | 07182e5626a01baf752ec13a57d7ab3eabe8f967 /openbox/frame.c | |
| parent | ec908528cf2abad9d2b968db9c8f7287ef5f54fe (diff) | |
remove the ob_root var, its redundant of what Xlib already provides
Diffstat (limited to 'openbox/frame.c')
| -rw-r--r-- | openbox/frame.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/openbox/frame.c b/openbox/frame.c index decebbce..82e7f90b 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -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; |
