aboutsummaryrefslogtreecommitdiff
path: root/src/server.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/server.zig')
-rw-r--r--src/server.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server.zig b/src/server.zig
index 469a10a..8a391f7 100644
--- a/src/server.zig
+++ b/src/server.zig
@@ -115,7 +115,9 @@ pub const Server = struct {
/// Handle all compositor keybindings
/// Note: this is a hacky initial implementation for testing and will be rewritten eventually
pub fn handleKeybinding(self: *Self, sym: c.xkb_keysym_t, modifiers: u32) bool {
- // This function assumes the proper modifier is held down.
+ if (modifiers & @intCast(u32, c.WLR_MODIFIER_LOGO) == 0) {
+ return false;
+ }
if (modifiers & @intCast(u32, c.WLR_MODIFIER_SHIFT) != 0) {
switch (sym) {
c.XKB_KEY_H => {