consistency : drag n drop task between desktop will not change active desktop (as before)
git-svn-id: http://tint2.googlecode.com/svn/trunk@394 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
12
src/tint.c
12
src/tint.c
@@ -407,12 +407,6 @@ void event_button_release (XEvent *e)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// switch desktop
|
|
||||||
if (panel_mode == MULTI_DESKTOP) {
|
|
||||||
if (tskbar->desktop != server.desktop && action != CLOSE && action != DESKTOP_LEFT && action != DESKTOP_RIGHT)
|
|
||||||
set_desktop (tskbar->desktop);
|
|
||||||
}
|
|
||||||
|
|
||||||
// drag and drop task
|
// drag and drop task
|
||||||
if (task_dragged) {
|
if (task_dragged) {
|
||||||
task_drag = 0;
|
task_drag = 0;
|
||||||
@@ -420,6 +414,12 @@ void event_button_release (XEvent *e)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// switch desktop
|
||||||
|
if (panel_mode == MULTI_DESKTOP) {
|
||||||
|
if (tskbar->desktop != server.desktop && action != CLOSE && action != DESKTOP_LEFT && action != DESKTOP_RIGHT)
|
||||||
|
set_desktop (tskbar->desktop);
|
||||||
|
}
|
||||||
|
|
||||||
// action on task
|
// action on task
|
||||||
window_action( click_task(panel, e->xbutton.x, e->xbutton.y), action);
|
window_action( click_task(panel, e->xbutton.x, e->xbutton.y), action);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user