]> Dogcows Code - chaz/openbox/commitdiff
notify the frame when the desktop changes
authorDana Jansens <danakj@orodu.net>
Thu, 13 Feb 2003 07:35:25 +0000 (07:35 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 13 Feb 2003 07:35:25 +0000 (07:35 +0000)
src/client.cc

index 33e11ce07e1e596621acb3c61fe5070e8feabc38..3175b3ba75658ebdfab932ff42cc5e66556fac34 100644 (file)
@@ -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();
 }
 
This page took 0.02604 seconds and 4 git commands to generate.