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/client.c | |
| parent | ec908528cf2abad9d2b968db9c8f7287ef5f54fe (diff) | |
remove the ob_root var, its redundant of what Xlib already provides
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c index 0dab31d0..644198a7 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -67,7 +67,8 @@ void client_set_list() } else windows = NULL; - PROP_SETA32(ob_root, net_client_list, window, (guint32*)windows, size); + PROP_SETA32(RootWindow(ob_display, ob_screen), + net_client_list, window, (guint32*)windows, size); if (windows) g_free(windows); @@ -113,7 +114,8 @@ void client_manage_all() XWMHints *wmhints; XWindowAttributes attrib; - XQueryTree(ob_display, ob_root, &w, &w, &children, &nchild); + XQueryTree(ob_display, RootWindow(ob_display, ob_screen), + &w, &w, &children, &nchild); /* remove all icon windows from the list */ for (i = 0; i < nchild; i++) { @@ -700,7 +702,7 @@ void client_update_transient_for(ObClient *self) group */ if (t == self->group->leader || t == None || - t == ob_root) { + t == RootWindow(ob_display, ob_screen)) { /* window is a transient for its group! */ c = OB_TRAN_GROUP; } |
