summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-20 03:38:02 +0000
committerDana Jansens <danakj@orodu.net>2007-05-20 03:38:02 +0000
commit8159ac5f8634ccaf7cd34e12ea1efa457e4bdcac (patch)
tree39ae4fcb26f30fceff4bfb5895dcc3126058851e /openbox
parent883bad43869c6fe55b4409a25d4283a941f8778d (diff)
i think this is good? can you run X at 32 bits?
Diffstat (limited to 'openbox')
-rw-r--r--openbox/frame.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index ed88859a..5c3922b1 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -72,6 +72,11 @@ static Visual *check_32bit_client(ObClient *c)
XWindowAttributes wattrib;
Status ret;
+ /* we're already running at 32 bit depth, yay. we don't need to use their
+ visual */
+ if (RrDepth(ob_rr_inst) == 32)
+ return NULL;
+
ret = XGetWindowAttributes(ob_display, c->window, &wattrib);
g_assert(ret != BadDrawable);
g_assert(ret != BadWindow);