From: Thierry Lorthiois Date: Fri, 23 Oct 2009 22:20:42 +0000 (+0000) Subject: fixed : changed active task with wm_menu option X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftint2;a=commitdiff_plain;h=ad92a56f453f1c0d50efc4a53754a60591b512b2 fixed : changed active task with wm_menu option --- diff --git a/src/panel.c b/src/panel.c index c6c706e..7f7f0f9 100644 --- a/src/panel.c +++ b/src/panel.c @@ -137,6 +137,7 @@ void init_panel() 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) { @@ -164,7 +165,6 @@ void init_panel() panel1 = new_panel; panel_refresh = 1; - refresh_systray = 1; init_taskbar(); visible_object(); task_refresh_tasklist(); diff --git a/src/taskbar/task.c b/src/taskbar/task.c index c180f85..0586854 100644 --- a/src/taskbar/task.c +++ b/src/taskbar/task.c @@ -383,6 +383,8 @@ void active_task() } Window w1 = window_get_active (); + //printf("Change active task %ld\n", w1); + tsk2 = task_get_task(w1); if (!tsk2) { Window w2; diff --git a/src/tint.c b/src/tint.c index ed1865c..1b4dc48 100644 --- a/src/tint.c +++ b/src/tint.c @@ -303,10 +303,10 @@ void event_button_press (XEvent *e) 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; }