Pass on MapNotify events to Clutter
Clutter needs to know about MapNotify events otherwise it will never make the stage visible and nothing will paint.
This commit is contained in:
parent
b41abfd1f8
commit
ff5055834b
@ -1672,7 +1672,8 @@ clutter_cmp_manage_screen (MetaCompositor *compositor,
|
|||||||
PointerMotionMask |
|
PointerMotionMask |
|
||||||
PropertyChangeMask |
|
PropertyChangeMask |
|
||||||
ButtonPressMask | ButtonReleaseMask |
|
ButtonPressMask | ButtonReleaseMask |
|
||||||
KeyPressMask | KeyReleaseMask;
|
KeyPressMask | KeyReleaseMask |
|
||||||
|
StructureNotifyMask;
|
||||||
|
|
||||||
if (XGetWindowAttributes (xdisplay, xwin, &attr))
|
if (XGetWindowAttributes (xdisplay, xwin, &attr))
|
||||||
{
|
{
|
||||||
@ -1837,6 +1838,11 @@ clutter_cmp_process_event (MetaCompositor *compositor,
|
|||||||
|
|
||||||
meta_error_trap_pop (xrc->display, FALSE);
|
meta_error_trap_pop (xrc->display, FALSE);
|
||||||
|
|
||||||
|
/* Clutter needs to know about MapNotify events otherwise it will
|
||||||
|
think the stage is invisible */
|
||||||
|
if (event->type == MapNotify)
|
||||||
|
clutter_x11_handle_event (event);
|
||||||
|
|
||||||
/* The above handling is basically just "observing" the events, so we return
|
/* The above handling is basically just "observing" the events, so we return
|
||||||
* FALSE to indicate that the event should not be filtered out; if we have
|
* FALSE to indicate that the event should not be filtered out; if we have
|
||||||
* GTK+ windows in the same process, GTK+ needs the ConfigureNotify event, for example.
|
* GTK+ windows in the same process, GTK+ needs the ConfigureNotify event, for example.
|
||||||
|
Loading…
Reference in New Issue
Block a user