mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-12 01:17:55 +03:00
block par.effect for applet popups
This commit is contained in:
parent
b264854a98
commit
fe4704e355
@ -36,12 +36,6 @@ public:
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
||||
QHash<int, QByteArray> roleNames() const override;
|
||||
|
||||
/*void appendSample(Sample * sample)
|
||||
{
|
||||
beginInsertRows(QModelIndex(), rowCount(), rowCount());
|
||||
mSamples << sample;
|
||||
endInsertRows();
|
||||
}*/
|
||||
void addTask(QObject *plasmoid);
|
||||
void removeTask(QObject *plasmoid);
|
||||
|
||||
|
@ -29,5 +29,7 @@ import "./privates" as Ability
|
||||
Ability.ParabolicEffectPrivate {
|
||||
factor.zoom: LatteCore.WindowSystem.compositingActive && animations.active ? ( 1 + (plasmoid.configuration.zoomLevel / 20) ) : 1
|
||||
factor.maxZoom: Math.max(factor.zoom, applets.require.maxInnerZoomFactor)
|
||||
restoreZoomIsBlocked: (view && view.contextMenuIsShown) || (applets.parabolic.restoreZoomIsBlocked)
|
||||
restoreZoomIsBlocked: (view && view.contextMenuIsShown)
|
||||
|| (view && view.extendedInterface.hasExpandedApplet)
|
||||
|| (applets.parabolic.restoreZoomIsBlocked)
|
||||
}
|
||||
|
@ -596,7 +596,7 @@ Item{
|
||||
}
|
||||
|
||||
function calculateScales( currentMousePosition ){
|
||||
if (parabolic.factor.zoom===1) {
|
||||
if (parabolic.factor.zoom===1 || parabolic.restoreZoomIsBlocked) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ AbilityGridPrivate {
|
||||
if (appletItem
|
||||
&& appletItem.communicator
|
||||
&& appletItem.communicator.parabolicEffectIsSupported
|
||||
&& appletItem.communicator.bridge.parabolic.client.restoreZoomIsBlocked) {
|
||||
&& appletItem.communicator.bridge.parabolic.client.local.restoreZoomIsBlocked) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -962,7 +962,7 @@ Item {
|
||||
Ability.ParabolicEffect {
|
||||
id: _parabolic
|
||||
bridge: latteBridge
|
||||
restoreZoomIsBlocked: root.contextMenu || windowsPreviewDlg.visible
|
||||
local.restoreZoomIsBlocked: root.contextMenu || windowsPreviewDlg.visible
|
||||
}
|
||||
|
||||
AppletAbility.Requirements{
|
||||
|
@ -157,7 +157,7 @@ Item{
|
||||
}
|
||||
|
||||
function calculateScales( currentMousePosition ){
|
||||
if (taskItem.parabolic.factor.zoom===1) {
|
||||
if (taskItem.parabolic.factor.zoom===1 || parabolic.restoreZoomIsBlocked) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user