summaryrefslogtreecommitdiff
path: root/libdecor/build
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-11-30 21:11:43 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-11-30 21:11:43 +0100
commit9b33cadbc1199cc4727500f3844fc63cd6a8cc93 (patch)
treeb982fac2d90ceb024f05dcb4235c21482f82d44f /libdecor/build
parent7472e41cccef9684a56adeeb2a496906c76cd5fd (diff)
Wayland: use GTK Shell also with system libdecor - cont'd
Diffstat (limited to 'libdecor/build')
-rw-r--r--libdecor/build/fl_libdecor-plugins.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdecor/build/fl_libdecor-plugins.c b/libdecor/build/fl_libdecor-plugins.c
index da3cc103c..35565a9e1 100644
--- a/libdecor/build/fl_libdecor-plugins.c
+++ b/libdecor/build/fl_libdecor-plugins.c
@@ -511,6 +511,9 @@ struct wl_object { // copied from wayland-private.h
// replace libdecor's pointer_button by FLTK's
void use_FLTK_pointer_button(struct libdecor_frame *frame) {
#if HAVE_GTK
+ static const char *my_plugin = NULL;
+ if (!my_plugin) my_plugin = get_libdecor_plugin_description(frame);
+ if (!my_plugin || strcmp(my_plugin, "GTK3 plugin")) return;
static struct wl_pointer_listener *fltk_listener = NULL;
if (!gtk_shell || fltk_listener) return;
struct libdecor_frame_gtk *lfg = (struct libdecor_frame_gtk *)frame;