mirror of
https://github.com/brl/mutter.git
synced 2025-04-28 12:49:38 +00:00
display: Adapt to new clutter event filter API
This commit is contained in:
parent
63b9110f93
commit
cf181fe109
@ -102,6 +102,8 @@ struct _MetaDisplay
|
|||||||
char *name;
|
char *name;
|
||||||
Display *xdisplay;
|
Display *xdisplay;
|
||||||
|
|
||||||
|
int clutter_event_filter;
|
||||||
|
|
||||||
Window leader_window;
|
Window leader_window;
|
||||||
Window timestamp_pinging_window;
|
Window timestamp_pinging_window;
|
||||||
|
|
||||||
|
@ -592,7 +592,10 @@ meta_display_open (void)
|
|||||||
meta_ui_add_event_func (the_display->xdisplay,
|
meta_ui_add_event_func (the_display->xdisplay,
|
||||||
xevent_callback,
|
xevent_callback,
|
||||||
the_display);
|
the_display);
|
||||||
clutter_event_add_filter (event_callback, the_display);
|
the_display->clutter_event_filter = clutter_event_add_filter (NULL,
|
||||||
|
event_callback,
|
||||||
|
NULL,
|
||||||
|
the_display);
|
||||||
|
|
||||||
the_display->xids = g_hash_table_new (meta_unsigned_long_hash,
|
the_display->xids = g_hash_table_new (meta_unsigned_long_hash,
|
||||||
meta_unsigned_long_equal);
|
meta_unsigned_long_equal);
|
||||||
@ -1124,7 +1127,8 @@ meta_display_close (MetaDisplay *display,
|
|||||||
meta_ui_remove_event_func (display->xdisplay,
|
meta_ui_remove_event_func (display->xdisplay,
|
||||||
xevent_callback,
|
xevent_callback,
|
||||||
display);
|
display);
|
||||||
clutter_event_remove_filter (event_callback, display);
|
clutter_event_remove_filter (display->clutter_event_filter);
|
||||||
|
display->clutter_event_filter = 0;
|
||||||
|
|
||||||
/* Free all screens */
|
/* Free all screens */
|
||||||
tmp = display->screens;
|
tmp = display->screens;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user