diff options
| author | Andrea Azzarone <azzaronea@gmail.com> | 2014-10-20 16:44:45 +0200 |
|---|---|---|
| committer | Andrea Azzarone <azzaronea@gmail.com> | 2014-10-20 16:44:45 +0200 |
| commit | 866f3432e57368109e7b51b8dd4c48888e4b9ad4 (patch) | |
| tree | 05a7d29ad1d43f1f1bc449e18ed6b602e3932e24 /unity-shared | |
| parent | 3e9436e5d0fbbc7bcd5aa10d86420e307390aa25 (diff) | |
Minor changes.
(bzr r3874.1.6)
Diffstat (limited to 'unity-shared')
| -rw-r--r-- | unity-shared/PluginAdapter.cpp | 3 | ||||
| -rw-r--r-- | unity-shared/PluginAdapter.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/unity-shared/PluginAdapter.cpp b/unity-shared/PluginAdapter.cpp index 75a336f65..3c7f3d4f0 100644 --- a/unity-shared/PluginAdapter.cpp +++ b/unity-shared/PluginAdapter.cpp @@ -1454,6 +1454,7 @@ void PluginAdapter::OnWindowClosed(CompWindow *w) _last_focused_window = NULL; } +// XXX Don't use that outside lockscreen controller! void PluginAdapter::UnmapAllNoNuxWindowsSync() { bool one_window_is_mapped = false; @@ -1461,7 +1462,7 @@ void PluginAdapter::UnmapAllNoNuxWindowsSync() { if (!IsNuxWindow(window) && window->isMapped()) { - window->unmap(); + XUnmapWindow(m_Screen->dpy(), window->id()); one_window_is_mapped = true; } } diff --git a/unity-shared/PluginAdapter.h b/unity-shared/PluginAdapter.h index e132bbbac..e5c14c7d0 100644 --- a/unity-shared/PluginAdapter.h +++ b/unity-shared/PluginAdapter.h @@ -194,6 +194,7 @@ public: Window GetTopWindowAbove(Window xid) const; void UnmapAllNoNuxWindowsSync(); + static bool IsNuxWindow(CompWindow* value); protected: PluginAdapter(CompScreen* screen); @@ -209,8 +210,6 @@ private: Window GetTopMostValidWindowInViewport() const; bool IsCurrentViewportEmpty() const; - bool IsNuxWindow(CompWindow* value); - CompScreen* m_Screen; MultiActionList m_ExpoActionList; MultiActionList m_ScaleActionList; |
