summaryrefslogtreecommitdiff
path: root/src/screen.cpp
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2009-02-26 00:05:47 +0100
committerDanny Baumann <dannybaumann@web.de>2009-02-26 00:05:47 +0100
commit51aa457b90948dd1900b8d10f10267078d452dfc (patch)
treed2f83adf13417742ae5253d53e9dd7cc1edaa7cd /src/screen.cpp
parent7c5721737790caa584838db83d47098fb8027a91 (diff)
downloadunity-window-decorator-51aa457b90948dd1900b8d10f10267078d452dfc.tar.gz
unity-window-decorator-51aa457b90948dd1900b8d10f10267078d452dfc.tar.bz2
Added support for _NET_WM_FULLSCREEN_MONITORS property.
Diffstat (limited to 'src/screen.cpp')
-rw-r--r--src/screen.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
index 33527b9..fff1c38 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -2064,11 +2064,16 @@ PrivateScreen::updateOutputDevices ()
outputDevs[i].setId (str, i);
}
-
hasOverlappingOutputs = false;
setCurrentOutput (currentOutputDev);
+ /* clear out fullscreen monitor hints of all windows as
+ suggested on monitor layout changes in EWMH */
+ foreach (CompWindow *w, windows)
+ if (w->priv->fullscreenMonitorsSet)
+ w->priv->setFullscreenMonitors (NULL);
+
updateWorkarea ();
screen->outputChangeNotify ();
@@ -2425,6 +2430,8 @@ PrivateScreen::setSupported ()
data[i++] = Atoms::moveResizeWindow;
data[i++] = Atoms::restackWindow;
+ data[i++] = Atoms::wmFullscreenMonitors;
+
XChangeProperty (dpy, root, Atoms::supported,
XA_ATOM, 32, PropModeReplace, (unsigned char *) data, i);
}