hide window previews when showing context menu

v0.6
Michail Vourlakos 8 years ago
parent 370baf23d7
commit 9fc10c84b1

@ -67,6 +67,8 @@ PlasmaComponents.ContextMenu {
loadDynamicLaunchActions(visualParent.m.LauncherUrlWithoutIcon);
// backend.ungrabMouse(visualParent);
openRelative();
windowsPreviewDlg.contextMenu = true;
windowsPreviewDlg.hide();
}
function newMenuItem(parent) {
@ -206,6 +208,7 @@ PlasmaComponents.ContextMenu {
Component.onDestruction: {
windowsPreviewDlg.contextMenu = false;
backend.ungrabMouse(visualParent);
root.signalActionsBlockHiding(-1);
//root.signalDraggingState(false);

@ -232,6 +232,7 @@ Item {
mainItem: toolTipDelegate
visible: false
property bool contextMenu: false
property bool signalSent: false
property Item activeItem: null
@ -253,7 +254,8 @@ Item {
toolTipDelegate.windows = [];
toolTipDelegate.isGroup = false;
root.disableRestoreZoom = false;
if (!contextMenu)
root.disableRestoreZoom = false;
visible = false;
}

Loading…
Cancel
Save