if (systray.area.on_screen && i == 0) {
init_systray_panel(p);
p->area.list = g_slist_append(p->area.list, &systray);
+ refresh_systray = 1;
}
if (i >= old_nb_panel) {
panel1 = new_panel;
panel_refresh = 1;
- refresh_systray = 1;
init_taskbar();
visible_object();
task_refresh_tasklist();
}
Window w1 = window_get_active ();
+ //printf("Change active task %ld\n", w1);
+
tsk2 = task_get_task(w1);
if (!tsk2) {
Window w2;
e->xbutton.window = server.root_win;
// icewm doesn't open under the mouse.
// and xfce doesn't open at all.
- //e->xbutton.x = e->xbutton.x_root;
- //e->xbutton.y = e->xbutton.y_root;
+ e->xbutton.x = e->xbutton.x_root;
+ e->xbutton.y = e->xbutton.y_root;
//printf("**** %d, %d\n", e->xbutton.x, e->xbutton.y);
- XSetInputFocus(server.dsp, e->xbutton.window, RevertToParent, e->xbutton.time);
+ //XSetInputFocus(server.dsp, e->xbutton.window, RevertToParent, e->xbutton.time);
XSendEvent(server.dsp, e->xbutton.window, False, ButtonPressMask, e);
return;
}