From: Dana Jansens Date: Tue, 7 Jan 2003 01:58:39 +0000 (+0000) Subject: dont hide windows when switching to the current workspace X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=d7cc09cebd23e052f230414f0ad7fb385e3cd2ef;p=chaz%2Fopenbox dont hide windows when switching to the current workspace --- diff --git a/src/client.cc b/src/client.cc index c3ab3c63..f07de8df 100644 --- a/src/client.cc +++ b/src/client.cc @@ -655,6 +655,8 @@ void OBClient::setWMState(long state) void OBClient::setDesktop(long target) { + if (target == _desktop) return; + printf("Setting desktop %ld\n", target); assert(target >= 0 || target == (signed)0xffffffff); //assert(target == 0xffffffff || target < MAX); diff --git a/src/screen.cc b/src/screen.cc index d925ff5c..a7c72e2c 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -648,6 +648,8 @@ void OBScreen::changeDesktop(long desktop) otk::OBProperty::Atom_Cardinal, _desktop); + if (old == _desktop) return; + OBClient::List::iterator it, end = clients.end(); for (it = clients.begin(); it != end; ++it) { if ((*it)->desktop() == old) {