mirror of
https://github.com/brl/mutter.git
synced 2025-08-09 01:44:41 +00:00
window: Make MetaWindow keep a pointer to the popup menu
Multiple windows may now have different popup menus, responding only to the device pair that popped it up.
This commit is contained in:
@@ -518,7 +518,13 @@ meta_core_show_window_menu (Display *xdisplay,
|
||||
guint32 timestamp)
|
||||
{
|
||||
MetaWindow *window = get_window (xdisplay, frame_xwindow);
|
||||
|
||||
|
||||
/* There is already a menu popped up,
|
||||
* most likely from another device
|
||||
*/
|
||||
if (window->menu)
|
||||
return;
|
||||
|
||||
if (meta_prefs_get_raise_on_click ())
|
||||
meta_window_raise (window);
|
||||
meta_window_focus (window, timestamp);
|
||||
|
Reference in New Issue
Block a user