From: Kristian Høgsberg Date: Tue, 26 Jun 2012 01:35:29 +0000 (-0400) Subject: shell: Fix inverted test for locked in workspace bindings X-Git-Tag: 0.94.90~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce345b0f609d7dc9a32d0d3658e241a439fa63ed;p=platform%2Fupstream%2Fweston.git shell: Fix inverted test for locked in workspace bindings --- diff --git a/src/shell.c b/src/shell.c index 613ce65..90db992 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)