[metacity] be willing to unfocus the grab window when we are unmanaging it
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] be willing to unfocus the grab window when we are unmanaging it
- Date: Fri, 3 Mar 2017 01:31:32 +0000 (UTC)
commit bf9e39d9b35532674e0b5317289817c5a8fc52bc
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Wed Dec 18 09:23:08 2013 -0500
be willing to unfocus the grab window when we are unmanaging it
When we are unmanaging the grab window, we /need/ to unfocus it,
so we shouldn't bail out early from meta_window_focus().
https://bugzilla.gnome.org/show_bug.cgi?id=711618
src/core/window.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index bb9a936..e7163b8 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -4452,7 +4452,8 @@ meta_window_focus (MetaWindow *window,
window->desc, window->input, window->take_focus);
if (window->display->grab_window &&
- window->display->grab_window->all_keys_grabbed)
+ window->display->grab_window->all_keys_grabbed &&
+ !window->display->grab_window->unmanaging)
{
meta_topic (META_DEBUG_FOCUS,
"Current focus window %s has global keygrab, not focusing window %s after all\n",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]