]> Dogcows Code - chaz/openbox/commitdiff
set the desktop number before the number of desktops
authorDana Jansens <danakj@orodu.net>
Mon, 3 Feb 2003 09:26:19 +0000 (09:26 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 3 Feb 2003 09:26:19 +0000 (09:26 +0000)
src/screen.cc

index 6170a5bb347d075bd68f006f5725b355b80e60e0..8f16427da6c2effbc57bbeb0e3ae3349951358a5 100644 (file)
@@ -110,11 +110,12 @@ Screen::Screen(int screen)
   // the above set() will cause the updateDesktopNames to fire right away so
   // we have a list of desktop names
 
   // the above set() will cause the updateDesktopNames to fire right away so
   // we have a list of desktop names
 
+  _desktop = 0;
+  
   if (!python_get_long("number_of_desktops", &_num_desktops))
     _num_desktops = 1;
   changeNumDesktops(_num_desktops); // set the hint
 
   if (!python_get_long("number_of_desktops", &_num_desktops))
     _num_desktops = 1;
   changeNumDesktops(_num_desktops); // set the hint
 
-  _desktop = 0;
   changeDesktop(0); // set the hint
 
   // create the window which gets focus when no clients get it
   changeDesktop(0); // set the hint
 
   // create the window which gets focus when no clients get it
This page took 0.023134 seconds and 4 git commands to generate.