Home | History | Annotate | Download | only in browser

Lines Matching full:window

22                               XID window) {
25 if (!ui::GetXWindowStack(window, &windows)) {
26 // Window Manager doesn't support _NET_CLIENT_LIST_STACKING, so fall back
30 int status = XQueryTree(ui::GetXDisplay(), window, &root, &parent,
46 // To find the top-most window:
48 // 2) For each window:
50 // 2.2) If it is managed by the Window Manager (has a WM_STATE property).
51 // Return this window as the top-most window.
52 // 2.3) Enumerate all its child windows. If there is a child window that is
53 // managed by the Window Manager (has a WM_STATE property). Return this
54 // child window as the top-most window.
61 XID window() const { return window_; }
64 virtual bool ShouldStopIterating(XID window) {
65 if (ui::PropertyExists(window, "WM_STATE")) {
66 window_ = window;
86 virtual bool ShouldStopIterating(XID window) {
87 if (!ui::IsWindowVisible(window))
89 if (ui::PropertyExists(window, "WM_STATE")) {
90 top_most_window_ = window;
94 EnumerateAllChildWindows(&child_finder, window);
95 XID child_window = child_finder.window();
109 // Find the topmost window.
112 XID window = finder.top_most_window();
113 if (window == None)
116 // Make sure it is not the desktop window.
121 if (ui::GetAtomArrayProperty(window,
128 // If it is a GDK window, check it using gdk function.
129 GdkWindow* gwindow = gdk_window_lookup(window);
130 if (gwindow && window != GDK_ROOT_WINDOW())
134 return ui::IsX11WindowFullScreen(window);