From e629806944f19ddccdceb75ccff095b06f2ab06c Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Fri, 14 Mar 2014 11:13:42 +0100 Subject: gtk-shell: add hack to always keep app launcher onscreen At the moment there's a problem where weston_view->output_mask for the app launcher window isn't updated during the animation of moving it onscreen. While offscreen ->output_mask is obviously 0 but during the animation the correct output should be added to the mask. To workaround this problem for now we'll keep the window always onscreen but hidden by the panel so this problem is never hit. This is a horrible hack and should be fixed properly as soon as possible. --- shell/gtk-shell.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shell/gtk-shell.c b/shell/gtk-shell.c index 5332734..040dbc7 100644 --- a/shell/gtk-shell.c +++ b/shell/gtk-shell.c @@ -140,7 +140,8 @@ desktop_shell_configure(void *data, shell_helper_move_surface(desktop->helper, desktop->launcher_grid->surface, - - grid_width, + /* TODO: massive hack so window is always onscreen */ + - grid_width + 1, ((height - window_height) / 2) + MAYNARD_CLOCK_HEIGHT); desktop_shell_desktop_ready(desktop->shell); @@ -184,7 +185,8 @@ launcher_grid_toggle (GtkWidget *widget, struct desktop *desktop) shell_helper_slide_surface(desktop->helper, desktop->launcher_grid->surface, - width + MAYNARD_PANEL_WIDTH, 0); + /* TODO: massive hack so window is always onscreen */ + width + MAYNARD_PANEL_WIDTH - 1, 0); } desktop->grid_visible = !desktop->grid_visible; -- cgit v1.3.1