all repos — tint2 @ 17beb4028318dd009e36ae8ce8c5f7a1f23cbe44

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

Handle primary_monitor_first correctly at startup (issue #613)
o9000 mrovi9000@gmail.com
commit

17beb4028318dd009e36ae8ce8c5f7a1f23cbe44

parent

cd76bd311ddb58c7b442da09bf747e8347cef86f

3 files changed, 9 insertions(+), 0 deletions(-)

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

@@ -302,6 +302,11 @@ return -1;

} } +void sort_monitors() +{ + qsort(server.monitors, server.num_monitors, sizeof(Monitor), compare_monitor_pos); +} + void get_monitors() { if (XineramaIsActive(server.display)) {
M src/server.hsrc/server.h

@@ -159,6 +159,7 @@ void get_root_pixmap();

// detect monitors and desktops void get_monitors(); +void sort_monitors(); void print_monitors(); void get_desktops(); void server_get_number_of_desktops();
M src/tint.csrc/tint.c

@@ -547,6 +547,9 @@ }

void init_X11_post_config() { + if (primary_monitor_first) + sort_monitors(); + server_init_visual(); gboolean need_sigchld = FALSE;