Revert "wayland: Add support for gtk_surface1_titlebar_gesture()"

This reverts commit 45ba6e9329.

This caused regressions in libhandy-using applications.

Fixes: #5389
This commit is contained in:
Matthias Clasen
2023-01-27 21:33:38 -05:00
parent 9811485990
commit 5aaa373b70
9 changed files with 4 additions and 140 deletions

View File

@ -1385,34 +1385,10 @@ gtk_window_titlebar_action (GtkWindow *window,
guint button,
gint n_press)
{
GdkTitlebarGesture gesture = 0;
GdkWindow *gdk_window;
GtkSettings *settings;
gchar *action = NULL;
gboolean retval = TRUE;
switch (button)
{
case GDK_BUTTON_PRIMARY:
if (n_press == 2)
gesture = GDK_TITLEBAR_GESTURE_DOUBLE_CLICK;
break;
case GDK_BUTTON_MIDDLE:
gesture = GDK_TITLEBAR_GESTURE_MIDDLE_CLICK;
break;
case GDK_BUTTON_SECONDARY:
gesture = GDK_TITLEBAR_GESTURE_RIGHT_CLICK;
break;
}
gdk_window = _gtk_widget_get_window (GTK_WIDGET (window));
if (gesture &&
GDK_PRIVATE_CALL (gdk_window_titlebar_gesture (gdk_window, gesture)))
{
retval = TRUE;
goto out;
}
settings = gtk_widget_get_settings (GTK_WIDGET (window));
switch (button)
{
@ -1458,7 +1434,6 @@ gtk_window_titlebar_action (GtkWindow *window,
g_free (action);
out:
return retval;
}