]> Dogcows Code - chaz/openbox/commitdiff
dont hide windows when switching to the current workspace
authorDana Jansens <danakj@orodu.net>
Tue, 7 Jan 2003 01:58:39 +0000 (01:58 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 7 Jan 2003 01:58:39 +0000 (01:58 +0000)
src/client.cc
src/screen.cc

index c3ab3c63a8740f25f677c38aa7c977fae1195b9b..f07de8df40d8d6d00c91bf2b5d3b380cb6f90806 100644 (file)
@@ -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);
index d925ff5c603803b360a0b9d0db55ac34e41fd165..a7c72e2c4fff2fd956bb982fd8570d7d6e43d5a1 100644 (file)
@@ -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) {
This page took 0.028846 seconds and 4 git commands to generate.