diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-06-25 21:35:29 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-06-25 21:35:42 -0400 |
commit | ce345b0f609d7dc9a32d0d3658e241a439fa63ed (patch) | |
tree | 9b0f2e1b82b7e7a3733e53073998d700fcbfeb6f | |
parent | b278fdf1fc6c456162c52d3862b2683935e69d5d (diff) |
shell: Fix inverted test for locked in workspace bindings
-rw-r--r-- | src/shell.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shell.c b/src/shell.c index 613ce65e..90db9922 100644 --- a/src/shell.c +++ b/src/shell.c @@ -3258,7 +3258,7 @@ workspace_up_binding(struct wl_seat *seat, uint32_t time, struct desktop_shell *shell = data; unsigned int new_index = shell->workspaces.current; - if (!shell->locked) + if (shell->locked) return; if (new_index != 0) new_index--; @@ -3273,7 +3273,7 @@ workspace_down_binding(struct wl_seat *seat, uint32_t time, struct desktop_shell *shell = data; unsigned int new_index = shell->workspaces.current; - if (!shell->locked) + if (shell->locked) return; if (new_index < shell->workspaces.num - 1) new_index++; @@ -3288,7 +3288,7 @@ workspace_f_binding(struct wl_seat *seat, uint32_t time, struct desktop_shell *shell = data; unsigned int new_index; - if (!shell->locked) + if (shell->locked) return; new_index = key - KEY_F1; if (new_index >= shell->workspaces.num) |