mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-24 18:03:53 +03:00
fixes and add double click to restore/maximize
This commit is contained in:
parent
b8ad6fceeb
commit
1397ebe5ed
@ -1641,8 +1641,13 @@ DragDrop.DropArea {
|
||||
}
|
||||
|
||||
onPressed: {
|
||||
dock.disableGrabItemBehavior();
|
||||
drawWindowTimer.start();
|
||||
drawWindowTimer.start();
|
||||
}
|
||||
|
||||
onDoubleClicked: {
|
||||
drawWindowTimer.stop();
|
||||
restoreGrabberTimer.stop();
|
||||
tasksModel.requestToggleMaximized(tasksModel.activeTask);
|
||||
}
|
||||
|
||||
Timer {
|
||||
@ -1650,17 +1655,16 @@ DragDrop.DropArea {
|
||||
interval: 350
|
||||
onTriggered: {
|
||||
if (rootMouseArea.pressed) {
|
||||
tasksModel.requestMove(tasksModel.activeTask);
|
||||
restoreGrabberTimer.start();
|
||||
} else {
|
||||
dock.restoreGrabItemBehavior();
|
||||
dock.disableGrabItemBehavior();
|
||||
tasksModel.requestMove(tasksModel.activeTask);
|
||||
restoreGrabberTimer.start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: restoreGrabberTimer
|
||||
interval: 350
|
||||
interval: 50
|
||||
onTriggered: {
|
||||
dock.restoreGrabItemBehavior();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user