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--;
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++;
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)