mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-27 14:50:21 +03:00
fix build
This commit is contained in:
parent
ba1c9a6dee
commit
a89bc65386
@ -22,6 +22,7 @@
|
||||
#include "dockconfigview.h"
|
||||
#include "dockcorona.h"
|
||||
#include "panelshadows_p.h"
|
||||
#include "screenpool.h"
|
||||
#include "visibilitymanager.h"
|
||||
#include "../liblattedock/extras.h"
|
||||
|
||||
@ -748,7 +749,14 @@ inline void DockView::syncGeometry()
|
||||
if (formFactor() == Plasma::Types::Vertical) {
|
||||
auto dockCorona = qobject_cast<DockCorona *>(corona());
|
||||
|
||||
int fixedScreen = onPrimary() ? dockCorona->screenPool()->primaryScreenId() : this->containment()->screen();
|
||||
int screenId = -1;
|
||||
|
||||
if (qGuiApp->primaryScreen()) {
|
||||
QString screenName = qGuiApp->primaryScreen()->name();
|
||||
screenId = dockCorona->screenPool()->id(screenName);
|
||||
}
|
||||
|
||||
int fixedScreen = (onPrimary() && screenId != -1) ? screenId : this->containment()->screen();
|
||||
freeRegion = corona()->availableScreenRegion(fixedScreen);
|
||||
maximumRect = maximumNormalGeometry();
|
||||
QRegion availableRegion = freeRegion.intersected(maximumRect);
|
||||
|
@ -41,7 +41,7 @@ NoDisplay=true
|
||||
X-KDE-PluginInfo-Author=Michail Vourlakos, Smith Ar
|
||||
X-KDE-PluginInfo-Email=mvourlakos@gmail.com, audoban@openmailbox.org
|
||||
X-KDE-PluginInfo-Name=org.kde.latte.containment
|
||||
X-KDE-PluginInfo-Version=0.7.1
|
||||
X-KDE-PluginInfo-Version=0.7.3
|
||||
X-KDE-PluginInfo-Website=https://github.com/psifidotos/Latte-Dock
|
||||
X-KDE-PluginInfo-Category=X-KDE-PluginInfo-Depends=
|
||||
X-KDE-PluginInfo-License=GPL
|
||||
|
@ -41,7 +41,7 @@ X-Plasma-Provides=org.kde.plasma.multitasking
|
||||
X-KDE-PluginInfo-Author=Michail Vourlakos, Smith Ar
|
||||
X-KDE-PluginInfo-Email=mvourlakos@gmail.com, audoban@openmailbox.org
|
||||
X-KDE-PluginInfo-Name=org.kde.latte.plasmoid
|
||||
X-KDE-PluginInfo-Version=0.7.1
|
||||
X-KDE-PluginInfo-Version=0.7.3
|
||||
X-KDE-PluginInfo-Website=https://github.com/psifidotos/Latte-Dock
|
||||
X-KDE-PluginInfo-Category=Windows and Tasks
|
||||
X-KDE-PluginInfo-Depends=X-KDE-PluginInfo-License=GPL v2+
|
||||
|
@ -60,5 +60,5 @@ X-KDE-PluginInfo-Author=Michail Vourlakos, Smith Ar
|
||||
X-KDE-PluginInfo-Email=mvourlakos@gmail.com, audoban@openmailbox.org
|
||||
X-KDE-PluginInfo-License=GPLv3+
|
||||
X-KDE-PluginInfo-Name=org.kde.latte.shell
|
||||
X-KDE-PluginInfo-Version=0.7.1
|
||||
X-KDE-PluginInfo-Version=0.7.3
|
||||
X-KDE-PluginInfo-Website=https://github.com/psifidotos/Latte-Dock
|
||||
|
Loading…
x
Reference in New Issue
Block a user