summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-13 07:35:25 +0000
committerDana Jansens <danakj@orodu.net>2003-02-13 07:35:25 +0000
commit939e7887ceaee9ec97428ad79d8424bde6e479dd (patch)
tree22ac9d6a1fd38226970a36b53664f40bd8b0e2e9
parent23cc9e0546a8165643eb8f394e57fe4be1df063c (diff)
notify the frame when the desktop changes
-rw-r--r--src/client.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/client.cc b/src/client.cc
index 33e11ce0..3175b3ba 100644
--- a/src/client.cc
+++ b/src/client.cc
@@ -83,7 +83,6 @@ Client::Client(int screen, Window window)
// any changes we've made here
otk::Property::set(_window, otk::Property::atoms.net_wm_desktop,
otk::Property::atoms.cardinal, (unsigned)_desktop);
-
changeState();
}
@@ -750,14 +749,12 @@ void Client::setDesktop(unsigned int target)
return;
_desktop = target;
-
// set the desktop hint
otk::Property::set(_window, otk::Property::atoms.net_wm_desktop,
otk::Property::atoms.cardinal, _desktop);
-
+ frame->adjustState(); // the frame can display the current desktop state
// 'move' the window to the new desktop
showhide();
-
openbox->screen(_screen)->updateStruts();
}
@@ -1580,9 +1577,7 @@ void Client::iconify(bool iconic, bool curdesk)
XMapWindow(**otk::display, _window);
}
changeState();
-
showhide();
-
openbox->screen(_screen)->updateStruts();
}