all repos — tint2 @ 45cc690167fbe1af1aef4c0993e5fa48f444798b

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Xorg: Rename function

git-svn-id: http://tint2.googlecode.com/svn/trunk@674 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
o9000 o9000
commit

45cc690167fbe1af1aef4c0993e5fa48f444798b

parent

4e76c2bb5dfcbca93f4a4b672476d2e0c78bc7d5

3 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/server.csrc/server.c

@@ -351,7 +351,7 @@ server.monitor[0].names = 0;

} } -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 @@

// 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); }
M src/server.hsrc/server.h

@@ -150,6 +150,6 @@

// detect monitors and desktops void get_monitors(); void get_desktops(); -int server_get_number_of_desktop(); +int server_get_number_of_desktops(); #endif
M src/tint.csrc/tint.c

@@ -596,7 +596,7 @@ }

// 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; }