]> Dogcows Code - chaz/tint2/commitdiff
fixed : changed active task with wm_menu option
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Fri, 23 Oct 2009 22:20:42 +0000 (22:20 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Fri, 23 Oct 2009 22:20:42 +0000 (22:20 +0000)
src/panel.c
src/taskbar/task.c
src/tint.c

index c6c706ef5d8186fd0441646dc24406e0e19a8016..7f7f0f9e4291a1a576a5917abd8359257c1a8d7b 100644 (file)
@@ -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();
index c180f85c62115b0941564be834a34888d8eb2738..0586854d3a07c34e4d2c3e4b19e9940ce99f7217 100644 (file)
@@ -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;
index ed1865cd364522edbff57776e60c54ae8701fa88..1b4dc488906f67fe76d9e481ca5d0ef3dc20e565 100644 (file)
@@ -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;
        }
This page took 0.0214 seconds and 4 git commands to generate.