]> Dogcows Code - chaz/tint2/commitdiff
*fix* bug fixed (multi-desktop and taskbar_active_id != taskbar_id)
authorAndreas Fink <andreas.fink85@googlemail.com>
Mon, 18 Jan 2010 20:16:32 +0000 (20:16 +0000)
committerAndreas Fink <andreas.fink85@googlemail.com>
Mon, 18 Jan 2010 20:16:32 +0000 (20:16 +0000)
src/systray/systraybar.c
src/taskbar/taskbar.c

index b369183696f871f08bd61ef47473754340d6e925..41f93a4e4a100bf7264acf26dbbde44ff85a3598 100644 (file)
@@ -435,7 +435,7 @@ gboolean add_icon(Window id)
 
        // show the window
        if (!traywin->hide)
-               XMapRaised(server.dsp, traywin->tray_id);
+               XMapWindow(server.dsp, traywin->tray_id);
        if (!traywin->hide && !panel->is_hidden)
                XMapRaised(server.dsp, traywin->id);
 
index f63c6b14b52e372106bf7c8f908127d588e6409e..32d080b028174bbc5f633e8331c38bb3734e26cb 100644 (file)
@@ -268,7 +268,7 @@ void resize_taskbar(void *obj)
                        tsk = l->data;
                        if (!tsk->area.on_screen) continue;
                        tsk->area.posx = x;
-                       if (tsk->area.width != pixel_width) set_task_redraw(tsk);
+                       set_task_redraw(tsk);  // always redraw task, because the background could have changed (taskbar_active_id)
                        tsk->area.width = pixel_width;
                        if (modulo_width) {
                                tsk->area.width++;
@@ -306,7 +306,7 @@ void resize_taskbar(void *obj)
                        tsk = l->data;
                        if (!tsk->area.on_screen) continue;
                        tsk->area.posy = y;
-                       if (tsk->area.height != pixel_height) set_task_redraw(tsk);
+                       set_task_redraw(tsk);  // always redraw task, because the background could have changed (taskbar_active_id)
                        tsk->area.height = pixel_height;
                        if (modulo_height) {
                                tsk->area.height++;
This page took 0.02077 seconds and 4 git commands to generate.