summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoronestone <onestone>2007-01-17 15:49:00 +0000
committeronestone <onestone>2007-01-17 15:49:00 +0000
commit1fe909b122c8bbd1c82b95fef97801babdc4a5e4 (patch)
treeaf1e4c107b69037a98100873dd4d3dc7b9fcc8af
parent09d4f7a80ebd4587fa7fd29d8f41662dba91af47 (diff)
downloadaquamarine-1fe909b122c8bbd1c82b95fef97801babdc4a5e4.tar.gz
aquamarine-1fe909b122c8bbd1c82b95fef97801babdc4a5e4.tar.bz2
aquamarine: fixed "On all desktops" menu setting
-rw-r--r--src/window.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index f3c2c9a..e07456f 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -644,6 +644,7 @@ void
Aquamarine::Window::setDesktop (int desktop)
{
KWin::setOnDesktop (mClientId, desktop);
+ mDecor->desktopChange ();
}
void
@@ -1550,9 +1551,12 @@ void
Aquamarine::Window::handleDesktopPopupActivated (int id)
{
if (id)
- setDesktop (id);
+ setDesktop (id);
else
- KWin::setOnAllDesktops (mClientId, true);
+ {
+ setDesktop ((desktop () == NET::OnAllDesktops) ?
+ KWin::currentDesktop() : NET::OnAllDesktops);
+ }
}
void