Xorg: Rename function

git-svn-id: http://tint2.googlecode.com/svn/trunk@674 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
o9000 2015-01-30 09:54:16 +00:00 committed by mrovi9000@gmail.com
parent 4e76c2bb5d
commit 45cc690167
3 changed files with 4 additions and 4 deletions

View file

@ -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);
}
@ -363,7 +363,7 @@ void get_desktops()
// detect number of desktops
// wait 15s to leave some time for window manager startup
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;
sleep(1);
}

View file

@ -150,6 +150,6 @@ void get_root_pixmap();
// detect monitors and desktops
void get_monitors();
void get_desktops();
int server_get_number_of_desktop();
int server_get_number_of_desktops();
#endif

View file

@ -596,7 +596,7 @@ void event_property_notify (XEvent *e)
// Change number of desktops
else if (at == server.atom._NET_NUMBER_OF_DESKTOPS) {
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) {
server.desktop = server.nb_desktop-1;
}