summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2023-07-24 00:13:41 -0400
committerlukefromdc <[email protected]>2025-07-04 02:39:58 -0400
commit33b3058d9f405f8da64aa6a109971b60651f60b1 (patch)
tree7fb2a222440cb2cbede176f8d5541900269db7cf
parent131e9ea115fa052dc545930b10ff170fa2e140ad (diff)
downloadmate-panel-wayland-mouse-dodge.tar.bz2
mate-panel-wayland-mouse-dodge.tar.xz
wayland: stop panel "dodging" mouse and moving to topwayland-mouse-dodge
*Disable grabbing and moving expanded panels in wayland due to tendency of panel other than on top to jump to top
-rw-r--r--mate-panel/panel-toplevel.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mate-panel/panel-toplevel.c b/mate-panel/panel-toplevel.c
index 2eb6e77a..5b00fa17 100644
--- a/mate-panel/panel-toplevel.c
+++ b/mate-panel/panel-toplevel.c
@@ -3499,6 +3499,15 @@ static gboolean
panel_toplevel_motion_notify_event (GtkWidget *widget,
GdkEventMotion *event)
{
+ PanelToplevel* toplevel = (PanelToplevel*) widget;
+#ifdef HAVE_WAYLAND
+ /*FIXME: this disables dragging the panel in wayland entirely
+ *But it hasn't worked properl in wayland ever
+ *We also need to stop the cursor changing to the hand symbol given this
+ */
+ if ((toplevel->priv->expand = TRUE) && ((GDK_IS_WAYLAND_DISPLAY(gdk_display_get_default()))))
+ return FALSE;
+#endif
if (gdk_event_get_screen ((GdkEvent *)event) ==
gtk_window_get_screen (GTK_WINDOW (widget)))
return panel_toplevel_handle_grab_op_motion_event (