mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05: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;
|
||||
Display *xdisplay;
|
||||
|
||||
int clutter_event_filter;
|
||||
|
||||
Window leader_window;
|
||||
Window timestamp_pinging_window;
|
||||
|
||||
|
@ -592,8 +592,11 @@ meta_display_open (void)
|
||||
meta_ui_add_event_func (the_display->xdisplay,
|
||||
xevent_callback,
|
||||
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,
|
||||
meta_unsigned_long_equal);
|
||||
the_display->wayland_windows = g_hash_table_new (NULL, NULL);
|
||||
@ -1124,7 +1127,8 @@ meta_display_close (MetaDisplay *display,
|
||||
meta_ui_remove_event_func (display->xdisplay,
|
||||
xevent_callback,
|
||||
display);
|
||||
clutter_event_remove_filter (event_callback, display);
|
||||
clutter_event_remove_filter (display->clutter_event_filter);
|
||||
display->clutter_event_filter = 0;
|
||||
|
||||
/* Free all screens */
|
||||
tmp = display->screens;
|
||||
|
Loading…
Reference in New Issue
Block a user