mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
cogl-winsys-glx: Fix the comparison in find_onscreen_for_xid
The comparison for finding onscreen framebuffers in find_onscreen_for_xid had a small thinko so that it would ignore framebuffers when the negation of the type is onscreen. This ends up doing the right thing anyway because the onscreen type has the value 0 and the offscreen type has the value 1 but presumably it would fail if we ever added any other framebuffer types.
This commit is contained in:
parent
16bfa27d43
commit
dcd23dc220
@ -188,7 +188,7 @@ find_onscreen_for_xid (CoglContext *context, guint32 xid)
|
||||
CoglFramebuffer *framebuffer = l->data;
|
||||
CoglOnscreenXlib *xlib_onscreen;
|
||||
|
||||
if (!framebuffer->type == COGL_FRAMEBUFFER_TYPE_ONSCREEN)
|
||||
if (framebuffer->type != COGL_FRAMEBUFFER_TYPE_ONSCREEN)
|
||||
continue;
|
||||
|
||||
/* Does the GLXEvent have the GLXDrawable or the X Window? */
|
||||
|
Loading…
Reference in New Issue
Block a user