i think this is good? can you run X at 32 bits?

This commit is contained in:
Dana Jansens 2007-05-20 03:38:02 +00:00
parent 883bad4386
commit 8159ac5f86

View file

@ -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);