Libdecor-gtk and GTK Shell: take care of LIBDECOR_PLUGIN_DIR

This commit is contained in:
ManoloFLTK 2023-11-14 14:29:36 +01:00
parent 19e40058da
commit 83f6336f3b
1 changed files with 8 additions and 0 deletions

View File

@ -437,6 +437,14 @@ void use_FLTK_pointer_button(struct libdecor_frame *frame) {
wl_list_for_each(seat, &lfg->plugin_gtk->seat_list, link) {
break;
}
struct wl_surface *surface = lfg->headerbar.wl_surface;
if (surface && !own_surface(surface)) {
// occurs if libdecor-gtk.so was dynamically loaded via LIBDECOR_PLUGIN_DIR
gtk_shell = NULL;
return;
}
struct wl_object *object = (struct wl_object *)seat->wl_pointer;
if (!object) return;
struct wl_pointer_listener *decor_listener =