summaryrefslogtreecommitdiff
path: root/libdecor/src/plugins/gtk
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-12 22:28:58 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-12 22:29:30 +0100
commit14d7218acd0b600f3abca41f6b04e018d4357f0f (patch)
tree7c6006929df2644a374fe64db444e82e29da3d55 /libdecor/src/plugins/gtk
parent5e4f51ac6b1d1da32687a40d29a0006a9be8eb67 (diff)
Fix compilation errors under Ubuntu 20.04
The problems will hopefully be fixed upstream later
Diffstat (limited to 'libdecor/src/plugins/gtk')
-rw-r--r--libdecor/src/plugins/gtk/libdecor-gtk.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/libdecor/src/plugins/gtk/libdecor-gtk.c b/libdecor/src/plugins/gtk/libdecor-gtk.c
index 2d0ebde45..f768db6b5 100644
--- a/libdecor/src/plugins/gtk/libdecor-gtk.c
+++ b/libdecor/src/plugins/gtk/libdecor-gtk.c
@@ -2246,15 +2246,16 @@ handle_titlebar_gesture(struct libdecor_frame_gtk *frame_gtk,
break;
case TITLEBAR_GESTURE_MIDDLE_CLICK:
break;
- case TITLEBAR_GESTURE_RIGHT_CLICK:
- const int title_height = gtk_widget_get_allocated_height(frame_gtk->header);
-
- libdecor_frame_show_window_menu(&frame_gtk->frame,
- seat->wl_seat,
- serial,
- seat->pointer_x,
- seat->pointer_y
- -title_height);
+ case TITLEBAR_GESTURE_RIGHT_CLICK: { /* FLTK */
+ const int title_height = gtk_widget_get_allocated_height(frame_gtk->header);
+
+ libdecor_frame_show_window_menu(&frame_gtk->frame,
+ seat->wl_seat,
+ serial,
+ seat->pointer_x,
+ seat->pointer_y
+ -title_height);
+ } /* FLTK */
break;
}
}
@@ -2408,7 +2409,7 @@ pointer_button(void *data,
case HEADER:
handle_button_on_header (frame_gtk, seat, serial, time, button, state);
break;
- default:
+ //default: /* FLTK */
}
}