summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/window.c b/src/window.c
index bd4b219..914a0c3 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2712,10 +2712,10 @@ meta_window_notify_focus (MetaWindow *window,
meta_topic (META_DEBUG_FOCUS,
"New focus window %s\n", window->desc);
window->display->focus_window = window;
+ window->has_focus = TRUE;
+ if (window->frame)
+ meta_frame_queue_draw (window->frame);
}
- window->has_focus = TRUE;
- if (window->frame)
- meta_frame_queue_draw (window->frame);
}
else if (event->type == FocusOut ||
event->type == UnmapNotify)
@@ -2742,10 +2742,10 @@ meta_window_notify_focus (MetaWindow *window,
"Clearing focus window (was %s)\n", window->desc);
window->display->focus_window = NULL;
+ window->has_focus = FALSE;
+ if (window->frame)
+ meta_frame_queue_draw (window->frame);
}
- window->has_focus = FALSE;
- if (window->frame)
- meta_frame_queue_draw (window->frame);
}
/* Now set _NET_ACTIVE_WINDOW hint */