starting point on issue 135

git-svn-id: http://tint2.googlecode.com/svn/trunk@201 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr 2009-09-27 13:33:31 +00:00
parent fe2dde30db
commit e015d5b19c

View file

@ -142,16 +142,14 @@ Taskbar *click_taskbar (Panel *panel, int x, int y)
if (panel_horizontal) {
for (i=0; i < panel->nb_desktop ; i++) {
tskbar = &panel->taskbar[i];
if (!tskbar->area.on_screen) continue;
if (x >= tskbar->area.posx && x <= (tskbar->area.posx + tskbar->area.width))
if (tskbar->area.on_screen && x >= tskbar->area.posx && x <= (tskbar->area.posx + tskbar->area.width))
return tskbar;
}
}
else {
for (i=0; i < panel->nb_desktop ; i++) {
tskbar = &panel->taskbar[i];
if (!tskbar->area.on_screen) continue;
if (y >= tskbar->area.posy && y <= (tskbar->area.posy + tskbar->area.height))
if (tskbar->area.on_screen && y >= tskbar->area.posy && y <= (tskbar->area.posy + tskbar->area.height))
return tskbar;
}
}
@ -615,6 +613,12 @@ void event_expose (XEvent *e)
void event_configure_notify (Window win)
{
if (win == server.root_win) {
printf("ConfigureNotify on root\n");
//XMoveWindow(dpy, fen, pos_x, pos_y);
//XResizeWindow(dpy, fen, largeur, hauteur);
}
else {
// check 'win' move in systray
TrayWindow *traywin;
GSList *l;
@ -646,6 +650,7 @@ void event_configure_notify (Window win)
panel_refresh = 1;
}
}
}
void event_timer()
@ -796,11 +801,6 @@ load_config:
break;
case ConfigureNotify:
//XMoveWindow(dpy, fen, pos_x, pos_y);
//XResizeWindow(dpy, fen, largeur, hauteur);
if (e.xconfigure.window == server.root_win)
goto load_config;
else
event_configure_notify (e.xconfigure.window);
break;