[mutter/meego-1.0: 12/30] [MetaDisplay] meta_display_get_leader_window()



commit 67cea32f3408624b8b3f03aac1d71eabdae806a9
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.

 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 6d074d1..66e3f7a 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -5340,3 +5340,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 c30e6ae..b5c8e4b 100644
--- a/src/include/display.h
+++ b/src/include/display.h
@@ -145,4 +145,6 @@ void meta_display_focus_the_no_focus_window (MetaDisplay *display,
                                              MetaScreen  *screen,
                                              guint32      timestamp);
 
+Window meta_display_get_leader_window (MetaDisplay *display);
+
 #endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]