fix #78,window preview does not take focus

--window preview at the same is blocking
dock hiding for as long it is shown
pull/1/head
Michail Vourlakos 8 years ago
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…
Cancel
Save