resume_desktop(struct desktop_shell *shell)
{
struct shell_surface *tmp;
+ struct workspace *ws = get_current_workspace(shell);
wl_list_for_each(tmp, &shell->screensaver.surfaces, link)
hide_screensaver(shell, tmp);
&shell->fullscreen_layer.link);
wl_list_insert(&shell->fullscreen_layer.link,
&shell->panel_layer.link);
+ wl_list_insert(&shell->panel_layer.link, &ws->layer.link);
pop_focus_state(shell, get_current_workspace(shell));
container_of(listener, struct desktop_shell, lock_listener);
struct shell_surface *shsurf;
struct weston_output *output;
+ struct workspace *ws = get_current_workspace(shell);
if (shell->locked) {
wl_list_for_each(output, &shell->compositor->output_list, link)
wl_list_remove(&shell->panel_layer.link);
wl_list_remove(&shell->fullscreen_layer.link);
+ wl_list_remove(&ws->layer.link);
wl_list_insert(&shell->compositor->cursor_layer.link,
&shell->lock_layer.link);
struct desktop_shell *shell = data;
unsigned int new_index = shell->workspaces.current;
+ 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)
+ return;
if (new_index < shell->workspaces.num - 1)
new_index++;
struct desktop_shell *shell = data;
unsigned int new_index;
+ if (!shell->locked)
+ return;
new_index = key - KEY_F1;
if (new_index >= shell->workspaces.num)
new_index = shell->workspaces.num - 1;