]> Dogcows Code - chaz/tint2/commitdiff
fixed
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Sat, 29 Aug 2009 15:26:47 +0000 (15:26 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Sat, 29 Aug 2009 15:26:47 +0000 (15:26 +0000)
src/tint.c

index 417f66cec71b476fa4f3456ebfc28e9b80927e16..ba79855190a3b512f9148eed3b44758a4e5e3124 100644 (file)
@@ -228,14 +228,14 @@ void window_action (Task *tsk, int action)
                        window_maximize_restore (tsk->win);
                        break;
                case DESKTOP_LEFT:
-                       if ( desk == 0 ) break;
+                       if ( tsk->desktop == 0 ) break;
                        desk = tsk->desktop - 1;
                        windows_set_desktop(tsk->win, desk);
                        if (desk == server.desktop)
                                set_active(tsk->win);
                        break;
                case DESKTOP_RIGHT:
-                       if (desk == server.nb_desktop ) break;
+                       if (tsk->desktop == server.nb_desktop ) break;
                        desk = tsk->desktop + 1;
                        windows_set_desktop(tsk->win, desk);
                        if (desk == server.desktop)
@@ -335,7 +335,7 @@ void event_button_release (XEvent *e)
 
    // switch desktop
    if (panel_mode == MULTI_DESKTOP) {
-      if (tskbar->desktop != server.desktop && action != CLOSE && action != mouse_tilt_left && action != mouse_tilt_right)
+      if (tskbar->desktop != server.desktop && action != CLOSE && action != DESKTOP_LEFT && action != DESKTOP_RIGHT)
          set_desktop (tskbar->desktop);
        }
 
This page took 0.029095 seconds and 4 git commands to generate.