]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/keyboard.c: stored handled keys as bound when window-cycling
authorJohan Malm <jgm323@gmail.com>
Tue, 30 Aug 2022 14:41:50 +0000 (15:41 +0100)
committerJohan Malm <jgm323@gmail.com>
Tue, 20 Sep 2022 19:52:48 +0000 (20:52 +0100)
...and changing TTY

src/keyboard.c

index 1b033a41089bc5e1a244fa74970f4f00aae1fd09..6b306b7b54dc5ad2c68049ff09df456248d03337 100644 (file)
@@ -134,7 +134,8 @@ handle_compositor_keybindings(struct wl_listener *listener,
                                 * Don't send any key events to clients when
                                 * changing tty
                                 */
-                               return true;
+                               handled = true;
+                               goto out;
                        }
                }
        }
@@ -147,7 +148,9 @@ handle_compositor_keybindings(struct wl_listener *listener,
                                        osd_preview_restore(server);
                                        /* osd_finish() additionally resets cycle_view to NULL */
                                        osd_finish(server);
-                                       return true;
+
+                                       handled = true;
+                                       goto out;
                                }
                        }
 
@@ -169,7 +172,8 @@ handle_compositor_keybindings(struct wl_listener *listener,
                        }
                }
                /* don't send any key events to clients when osd onscreen */
-               return true;
+               handled = true;
+               goto out;
        }
 
        /* Handle compositor key bindings */
@@ -179,6 +183,7 @@ handle_compositor_keybindings(struct wl_listener *listener,
                }
        }
 
+out:
        if (handled) {
                key_state_store_pressed_keys_as_bound();
        }