Xorg: Rename function
git-svn-id: http://tint2.googlecode.com/svn/trunk@674 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
parent
4e76c2bb5d
commit
45cc690167
3 changed files with 4 additions and 4 deletions
|
@ -351,7 +351,7 @@ next:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int server_get_number_of_desktop ()
|
int server_get_number_of_desktops()
|
||||||
{
|
{
|
||||||
return get_property32(server.root_win, server.atom._NET_NUMBER_OF_DESKTOPS, XA_CARDINAL);
|
return get_property32(server.root_win, server.atom._NET_NUMBER_OF_DESKTOPS, XA_CARDINAL);
|
||||||
}
|
}
|
||||||
|
@ -363,7 +363,7 @@ void get_desktops()
|
||||||
// detect number of desktops
|
// detect number of desktops
|
||||||
// wait 15s to leave some time for window manager startup
|
// wait 15s to leave some time for window manager startup
|
||||||
for (i=0 ; i < 15 ; i++) {
|
for (i=0 ; i < 15 ; i++) {
|
||||||
server.nb_desktop = server_get_number_of_desktop ();
|
server.nb_desktop = server_get_number_of_desktops();
|
||||||
if (server.nb_desktop > 0) break;
|
if (server.nb_desktop > 0) break;
|
||||||
sleep(1);
|
sleep(1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -150,6 +150,6 @@ void get_root_pixmap();
|
||||||
// detect monitors and desktops
|
// detect monitors and desktops
|
||||||
void get_monitors();
|
void get_monitors();
|
||||||
void get_desktops();
|
void get_desktops();
|
||||||
int server_get_number_of_desktop();
|
int server_get_number_of_desktops();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -596,7 +596,7 @@ void event_property_notify (XEvent *e)
|
||||||
// Change number of desktops
|
// Change number of desktops
|
||||||
else if (at == server.atom._NET_NUMBER_OF_DESKTOPS) {
|
else if (at == server.atom._NET_NUMBER_OF_DESKTOPS) {
|
||||||
if (!taskbar_enabled) return;
|
if (!taskbar_enabled) return;
|
||||||
server.nb_desktop = server_get_number_of_desktop ();
|
server.nb_desktop = server_get_number_of_desktops();
|
||||||
if (server.nb_desktop <= server.desktop) {
|
if (server.nb_desktop <= server.desktop) {
|
||||||
server.desktop = server.nb_desktop-1;
|
server.desktop = server.nb_desktop-1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue