[mutter] [MetaDisplay] meta_display_get_leader_window()
- From: Tomas Frydrych <tomasf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] [MetaDisplay] meta_display_get_leader_window()
- Date: Fri, 14 May 2010 11:44:31 +0000 (UTC)
commit e28e7a72aab78f62f2591f21ed12c0be2493cf82
Author: Tomas Frydrych <tf linux intel com>
Date: Wed Mar 17 09:15:55 2010 +0000
[MetaDisplay] meta_display_get_leader_window()
This function returns xid of the WM leader window (as defined by the
_NET_SUPPORTING_WM_CHECK mechanism of EWMH). For use by plugins that wish to
attach custom properties to this window.
https://bugzilla.gnome.org/show_bug.cgi?id=613125
src/core/display.c | 16 ++++++++++++++++
src/include/display.h | 2 ++
2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index c6536e1..c160028 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -5405,3 +5405,19 @@ Atom meta_display_get_atom (MetaDisplay *display, MetaAtom meta_atom)
return atoms[meta_atom - 1];
}
+
+/**
+ * meta_display_get_leader_window:
+ * @display: a #MetaDisplay
+ *
+ * Returns the window manager's leader window (as defined by the
+ * _NET_SUPPORTING_WM_CHECK mechanism of EWMH). For use by plugins that wish
+ * to attach additional custom properties to this window.
+ *
+ * Return value: (transfer none): xid of the leader window.
+ **/
+Window
+meta_display_get_leader_window (MetaDisplay *display)
+{
+ return display->leader_window;
+}
diff --git a/src/include/display.h b/src/include/display.h
index 78e4187..ee63fda 100644
--- a/src/include/display.h
+++ b/src/include/display.h
@@ -154,4 +154,6 @@ void meta_display_focus_the_no_focus_window (MetaDisplay *display,
GSList *meta_display_sort_windows_by_stacking (MetaDisplay *display,
GSList *windows);
+Window meta_display_get_leader_window (MetaDisplay *display);
+
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]