set the desktop number before the number of desktops
This commit is contained in:
parent
9f8253a0a8
commit
e44c0cba4b
1 changed files with 2 additions and 1 deletions
|
@ -110,11 +110,12 @@ Screen::Screen(int screen)
|
||||||
// the above set() will cause the updateDesktopNames to fire right away so
|
// the above set() will cause the updateDesktopNames to fire right away so
|
||||||
// we have a list of desktop names
|
// we have a list of desktop names
|
||||||
|
|
||||||
|
_desktop = 0;
|
||||||
|
|
||||||
if (!python_get_long("number_of_desktops", &_num_desktops))
|
if (!python_get_long("number_of_desktops", &_num_desktops))
|
||||||
_num_desktops = 1;
|
_num_desktops = 1;
|
||||||
changeNumDesktops(_num_desktops); // set the hint
|
changeNumDesktops(_num_desktops); // set the hint
|
||||||
|
|
||||||
_desktop = 0;
|
|
||||||
changeDesktop(0); // set the hint
|
changeDesktop(0); // set the hint
|
||||||
|
|
||||||
// create the window which gets focus when no clients get it
|
// create the window which gets focus when no clients get it
|
||||||
|
|
Loading…
Reference in a new issue