mirror of
https://github.com/brl/mutter.git
synced 2025-07-03 17:46:31 +00:00
MetaDisplay: remove meta_display_grab()/ungrab()
Now that we have two connections to the X server, the idea of a ref-counted server grab that might be held across extended portions of code is very dangerous since we might try to use the backend connection while the frontend connection is grabbed. Replace the only usage (which was local) with direct XGrabServer/XUngrabServer usage and remove the meta_display_grab() API. https://bugzilla.gnome.org/show_bug.cgi?id=733068
This commit is contained in:
@ -146,8 +146,6 @@ struct _MetaDisplay
|
||||
GHashTable *xids;
|
||||
GHashTable *wayland_windows;
|
||||
|
||||
int server_grab_count;
|
||||
|
||||
/* serials of leave/unmap events that may
|
||||
* correspond to an enter event we should
|
||||
* ignore
|
||||
@ -314,8 +312,6 @@ struct _MetaDisplayClass
|
||||
gboolean meta_display_open (void);
|
||||
void meta_display_close (MetaDisplay *display,
|
||||
guint32 timestamp);
|
||||
void meta_display_grab (MetaDisplay *display);
|
||||
void meta_display_ungrab (MetaDisplay *display);
|
||||
|
||||
void meta_display_unmanage_windows_for_screen (MetaDisplay *display,
|
||||
MetaScreen *screen,
|
||||
|
Reference in New Issue
Block a user