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:
parent
fe2dde30db
commit
e015d5b19c
1 changed files with 37 additions and 37 deletions
18
src/tint.c
18
src/tint.c
|
@ -142,16 +142,14 @@ Taskbar *click_taskbar (Panel *panel, int x, int y)
|
||||||
if (panel_horizontal) {
|
if (panel_horizontal) {
|
||||||
for (i=0; i < panel->nb_desktop ; i++) {
|
for (i=0; i < panel->nb_desktop ; i++) {
|
||||||
tskbar = &panel->taskbar[i];
|
tskbar = &panel->taskbar[i];
|
||||||
if (!tskbar->area.on_screen) continue;
|
if (tskbar->area.on_screen && x >= tskbar->area.posx && x <= (tskbar->area.posx + tskbar->area.width))
|
||||||
if (x >= tskbar->area.posx && x <= (tskbar->area.posx + tskbar->area.width))
|
|
||||||
return tskbar;
|
return tskbar;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for (i=0; i < panel->nb_desktop ; i++) {
|
for (i=0; i < panel->nb_desktop ; i++) {
|
||||||
tskbar = &panel->taskbar[i];
|
tskbar = &panel->taskbar[i];
|
||||||
if (!tskbar->area.on_screen) continue;
|
if (tskbar->area.on_screen && y >= tskbar->area.posy && y <= (tskbar->area.posy + tskbar->area.height))
|
||||||
if (y >= tskbar->area.posy && y <= (tskbar->area.posy + tskbar->area.height))
|
|
||||||
return tskbar;
|
return tskbar;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -615,6 +613,12 @@ void event_expose (XEvent *e)
|
||||||
|
|
||||||
void event_configure_notify (Window win)
|
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
|
// check 'win' move in systray
|
||||||
TrayWindow *traywin;
|
TrayWindow *traywin;
|
||||||
GSList *l;
|
GSList *l;
|
||||||
|
@ -646,6 +650,7 @@ void event_configure_notify (Window win)
|
||||||
panel_refresh = 1;
|
panel_refresh = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void event_timer()
|
void event_timer()
|
||||||
|
@ -796,11 +801,6 @@ load_config:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ConfigureNotify:
|
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);
|
event_configure_notify (e.xconfigure.window);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue