path: root/src/stack.c
diff options
authorHavoc Pennington <>2002-01-11 03:31:14 +0000
committerHavoc Pennington <>2002-01-11 03:31:14 +0000
commit229589616fd735e1d28645619190b2fe103e41ba (patch)
treecb27afc7871a529c2f44f97f4b1d2d88545beb42 /src/stack.c
parentb2bbb306f4cb142d3f649773312f78aac0dc93dc (diff)
only bump unmaps_pending if the window was mapped
2002-01-10 Havoc Pennington <> * src/frame.c (meta_window_destroy_frame): only bump unmaps_pending if the window was mapped (meta_window_ensure_frame): ditto * src/keybindings.c: change arrow key bindings to use Ctrl+Alt not just Alt, and add debug mode key bindings * src/stack.c (meta_stack_get_default_focus_window): don't choose a default focus window with unmaps pending, since we probably just unmapped it. * src/display.c (event_callback): move notify_focus on UnmapNotify after the window_free check, so we can move focus to another window when we unmanage * src/window.c (meta_window_hide): invalidate work areas when hiding a window with struts (meta_window_free): invalidate work areas when unmanaging a window with struts
Diffstat (limited to 'src/stack.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stack.c b/src/stack.c
index 8f03971..e9672a8 100644
--- a/src/stack.c
+++ b/src/stack.c
@@ -901,6 +901,7 @@ meta_stack_get_default_focus_window (MetaStack *stack,
if (window &&
window != not_this_one &&
+ (window->unmaps_pending == 0) &&
(workspace == NULL ||
meta_window_visible_on_workspace (window, workspace)))