1
0
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:
Michail Vourlakos 2018-02-06 20:23:15 +02:00
parent ba1c9a6dee
commit a89bc65386
4 changed files with 12 additions and 4 deletions

View File

@ -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);

View File

@ -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

View File

@ -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+

View File

@ -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