improved multi-monitor detection. need more work.

git-svn-id: http://tint2.googlecode.com/svn/trunk@222 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr
2009-10-21 21:13:13 +00:00
parent 8193f7f494
commit 7f05ebe6ac
3 changed files with 62 additions and 52 deletions

View File

@@ -138,7 +138,7 @@ void init_panel()
if (i >= old_nb_panel) {
// new panel
//printf("new window\n");
printf("new panel %d, %d, %d, %d\n", p->posx, p->posy, p->area.width, p->area.height);
// Catch some events
long event_mask = ExposureMask|ButtonPressMask|ButtonReleaseMask;
@@ -154,7 +154,7 @@ void init_panel()
}
else {
// old panel
//printf("move old window\n");
printf("old panel %d, %d, %d, %d\n", p->posx, p->posy, p->area.width, p->area.height);
XMoveResizeWindow(server.dsp, p->main_win, p->posx, p->posy, p->area.width, p->area.height);
set_panel_background(p);
}