mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-12 12:58:16 +03:00
adjust secondary config win to new design
--secondary config window now follows the primary config window design. Config windows now are just simple windows !AboveAll and are activated from Latte::View on demand. This way we can now have demonstration of the parabolic effect during editMode at all times
This commit is contained in:
parent
a2876a3b72
commit
cab2055279
@ -139,7 +139,7 @@ void SecondaryConfigView::init()
|
||||
|
||||
inline Qt::WindowFlags SecondaryConfigView::wFlags() const
|
||||
{
|
||||
return (flags() | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint) & ~Qt::WindowDoesNotAcceptFocus;
|
||||
return (flags() | Qt::FramelessWindowHint /*| Qt::WindowStaysOnTopHint*/) & ~Qt::WindowDoesNotAcceptFocus;
|
||||
}
|
||||
|
||||
QRect SecondaryConfigView::geometryWhenVisible() const
|
||||
|
@ -990,7 +990,15 @@ bool View::event(QEvent *e)
|
||||
m_containsMouse = true;
|
||||
|
||||
if (m_configView && KWindowSystem::isPlatformX11()) {
|
||||
m_configView->requestActivate();
|
||||
ViewPart::PrimaryConfigView *primaryConfigView = qobject_cast<ViewPart::PrimaryConfigView *>(m_configView);
|
||||
|
||||
if (primaryConfigView) {
|
||||
if (primaryConfigView->secondaryWindow()) {
|
||||
primaryConfigView->secondaryWindow()->requestActivate();
|
||||
}
|
||||
|
||||
primaryConfigView->requestActivate();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -82,7 +82,7 @@ FocusScope {
|
||||
shadowOpacity: Math.max(0.35, maxOpacity)
|
||||
shadowDirection: plasmoid.location
|
||||
|
||||
visible: !Latte.WindowSystem.isPlatformWayland && Latte.WindowSystem.compositingActive //&& latteView.effects.settingsMaskSubtracted
|
||||
visible: !Latte.WindowSystem.isPlatformWayland && Latte.WindowSystem.compositingActive && latteView.effects.settingsMaskSubtracted
|
||||
|
||||
readonly property real maxOpacity: Latte.WindowSystem.compositingActive && !plasmoid.configuration.inConfigureAppletsMode ?
|
||||
plasmoid.configuration.editBackgroundOpacity : 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user