[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
This commit is contained in:
parent
fc9488211f
commit
e28e7a72aa
2 changed files with 18 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue