summaryrefslogtreecommitdiff
path: root/src/core/display-private.h
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-05-24 17:58:55 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2013-05-28 15:07:13 -0400
commitc7b8f26cad46b719a35f2c241b0cb3dc84ccf1d6 (patch)
tree46f2522bb51e1a36a09ed5272169fa4300519803 /src/core/display-private.h
parent8747b97ba3024ce28789336f7e0221be1ecacb70 (diff)
downloadmutter-focus-new.tar.gz
compositor: Add an API to query if the stage is focusedfocus-new
gnome-shell needs to know whether the stage window is focused so it can synchronize between stage window focus and Clutter key actor focus. Track all X windows, even those without MetaWindows, when tracking the focus window, and add a compositor-level API to determine when the stage is focused.
Diffstat (limited to 'src/core/display-private.h')
-rw-r--r--src/core/display-private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/display-private.h b/src/core/display-private.h
index a311317a8..0e8142cf5 100644
--- a/src/core/display-private.h
+++ b/src/core/display-private.h
@@ -113,6 +113,9 @@ struct _MetaDisplay
* or event that caused this.
*/
MetaWindow *focus_window;
+ /* For windows we've focused that don't necessarily have an X window,
+ * like the no_focus_window or the stage X window. */
+ Window focus_xwindow;
gulong focus_serial;
/* last timestamp passed to XSetInputFocus */