summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-11-08 09:18:30 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-11-08 09:18:30 +0100
commit93b26e4d3b2142f20dd6078fe0445ba6f7e26645 (patch)
tree0413fcfad2be392eec025525e9e2ab683e158942
parent214b133298f4a1b31e9b6ab89392fcd574fa6691 (diff)
Let Wayland FLTK client apps survive switching user
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
index c56d74744..a8a6c7298 100644
--- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
@@ -1073,8 +1073,8 @@ static void registry_handle_global(void *user_data, struct wl_registry *wl_regis
id, &wl_shm_interface, 1);
} else if (strcmp(interface, "wl_seat") == 0) {
- if (version < 2) {
- Fl::fatal("%s version 2 required but only version %i is available\n",
+ if (version < 3) {
+ Fl::fatal("%s version 3 required but only version %i is available\n",
interface, version);
}
if (!scr_driver->seat) scr_driver->seat =
@@ -1083,7 +1083,7 @@ static void registry_handle_global(void *user_data, struct wl_registry *wl_regis
//fprintf(stderr, "registry_handle_global: seat=%p\n", scr_driver->seat);
wl_list_init(&scr_driver->seat->pointer_outputs);
scr_driver->seat->wl_seat = (wl_seat*)wl_registry_bind(wl_registry, id,
- &wl_seat_interface, 2);
+ &wl_seat_interface, 3);
scr_driver->seat->xkb_context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
if (scr_driver->seat->xkb_context) {
const char *locale = getenv("LC_ALL");