]> git.mdlowis.com Git - proto/labwc.git/commitdiff
layer: do not change keyboard-focus in map-handler
authorJohan Malm <jgm323@gmail.com>
Sat, 9 Mar 2024 15:04:44 +0000 (15:04 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 17 Mar 2024 21:18:47 +0000 (21:18 +0000)
If a client wants keyboard-interactivity this will be processed in the
commit handler.

Remove duplicate (and incorrect) requrests for focus.

src/layers.c

index e0c5c7e82b1f60b7314405c0f86e8f64b616bec2..9f3486ec437dafc1848796bba09adf9311f4f6ee 100644 (file)
@@ -318,8 +318,10 @@ handle_map(struct wl_listener *listener, void *data)
         * the scene. See wlr_scene_surface_create() documentation.
         */
 
-       struct seat *seat = &layer->server->seat;
-       layer_try_set_focus(seat, layer->scene_layer_surface->layer_surface);
+       /*
+        * Processing of keyboard-interactivity changes is done in the
+        * commit-handler.
+        */
 }
 
 static void