mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-09 00:58:15 +03:00
fix #78,window preview does not take focus
--window preview at the same is blocking dock hiding for as long it is shown
This commit is contained in:
parent
0f658a1e54
commit
d6061f098e
@ -210,7 +210,8 @@ Item {
|
||||
// hideOnWindowDeactivate: false
|
||||
|
||||
type: PlasmaCore.Dialog.Tooltip
|
||||
// flags: Qt.WindowStaysOnTopHint
|
||||
flags: Qt.WindowStaysOnTopHint | Qt.WindowDoesNotAcceptFocus
|
||||
|
||||
location: PlasmaCore.Types.Floating
|
||||
|
||||
visible: false
|
||||
@ -220,6 +221,10 @@ Item {
|
||||
property Item activeItem: null
|
||||
|
||||
function hide(){
|
||||
if (nowDockPanel) {
|
||||
//it is used to unblock dock hiding
|
||||
root.signalDraggingState(false);
|
||||
}
|
||||
visible = false;
|
||||
//activeItem = null;
|
||||
initializePreviewComponent.createObject(windowsPreviewDlg);
|
||||
@ -237,6 +242,10 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
if (nowDockPanel) {
|
||||
//it is used to block dock hiding
|
||||
root.signalDraggingState(true);
|
||||
}
|
||||
visible = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user