diff options
author | lukefromdc <[email protected]> | 2024-01-06 18:30:46 -0500 |
---|---|---|
committer | raveit65 <[email protected]> | 2024-01-25 20:37:03 +0100 |
commit | c7b20bf68329757738c70032f0269758294d5f59 (patch) | |
tree | c3aa848ed8444f72b98b1d85bb10bb90b0afdd90 /libmate-panel-applet/mate-panel-applet.c | |
parent | ad39a8ba88f4286c8f1e5f0cb9ac2b89b1d79726 (diff) | |
download | mate-panel-c7b20bf68329757738c70032f0269758294d5f59.tar.bz2 mate-panel-c7b20bf68329757738c70032f0269758294d5f59.tar.xz |
wayland: keep window list menu off space not used for buttons
*Fix the window list menu replacing the panel context menu between the end of the window list and the next applet
Diffstat (limited to 'libmate-panel-applet/mate-panel-applet.c')
-rw-r--r-- | libmate-panel-applet/mate-panel-applet.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libmate-panel-applet/mate-panel-applet.c b/libmate-panel-applet/mate-panel-applet.c index 543ba4c5..48e12622 100644 --- a/libmate-panel-applet/mate-panel-applet.c +++ b/libmate-panel-applet/mate-panel-applet.c @@ -1042,12 +1042,22 @@ mate_panel_applet_button_press (GtkWidget *widget, } } +#ifdef HAVE_WAYLAND + /*Limit the window list's applet menu to the handle area*/ + if (!(GDK_IS_X11_DISPLAY (gdk_display_get_default ()))) + { + MatePanelAppletFlags flags; + flags = mate_panel_applet_get_flags (applet); + if (flags & MATE_PANEL_APPLET_EXPAND_MAJOR) + return FALSE; + } +#endif + if (event->button == 3) { mate_panel_applet_menu_popup (applet, (GdkEvent *) event); return TRUE; } - return mate_panel_applet_button_event (applet, event); } |