|
|
commit 14d7218acd0b600f3abca41f6b04e018d4357f0f
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Tue Mar 12 22:28:58 2024 +0100
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Tue Mar 12 22:29:30 2024 +0100
Fix compilation errors under Ubuntu 20.04
The problems will hopefully be fixed upstream later
libdecor/src/plugins/gtk/libdecor-gtk.c | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git libdecor/src/plugins/gtk/libdecor-gtk.c libdecor/src/plugins/gtk/libdecor-gtk.c
index 2d0ebde..f768db6 100644
--- libdecor/src/plugins/gtk/libdecor-gtk.c
+++ 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 */
}
}
[ Direct Link to Message ] | |
|
| |