summaryrefslogtreecommitdiff
path: root/libmate-panel-applet
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2024-01-06 18:30:46 -0500
committerraveit65 <[email protected]>2024-01-25 20:37:03 +0100
commitc7b20bf68329757738c70032f0269758294d5f59 (patch)
treec3aa848ed8444f72b98b1d85bb10bb90b0afdd90 /libmate-panel-applet
parentad39a8ba88f4286c8f1e5f0cb9ac2b89b1d79726 (diff)
downloadmate-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')
-rw-r--r--libmate-panel-applet/mate-panel-applet.c12
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);
}