aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/core/libLumina/NativeWindowSystem.cpp1
-rw-r--r--src-qt5/core/libLumina/RootSubWindow.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/NativeWindowSystem.cpp b/src-qt5/core/libLumina/NativeWindowSystem.cpp
index 791271cc..5f2c8b6e 100644
--- a/src-qt5/core/libLumina/NativeWindowSystem.cpp
+++ b/src-qt5/core/libLumina/NativeWindowSystem.cpp
@@ -466,6 +466,7 @@ void NativeWindowSystem::UpdateWindowProperties(NativeWindow* win, QList< Native
}
void NativeWindowSystem::ChangeWindowProperties(NativeWindow* win, QList< NativeWindow::Property > props, QList<QVariant> vals){
+ if(props.length() == 0 || vals.length()!=props.length() || win ==0 ){ return; }
qDebug() << "Change Window Properties:" << props << vals;
if(props.contains(NativeWindow::Title)){
diff --git a/src-qt5/core/libLumina/RootSubWindow.cpp b/src-qt5/core/libLumina/RootSubWindow.cpp
index 213e07ca..bbbbf644 100644
--- a/src-qt5/core/libLumina/RootSubWindow.cpp
+++ b/src-qt5/core/libLumina/RootSubWindow.cpp
@@ -180,6 +180,7 @@ void RootSubWindow::LoadProperties( QList< NativeWindow::Property> list){
QList<int> frame; frame << WIN_BORDER << WIN_BORDER << WIN_BORDER+titleLabel->height() << WIN_BORDER;
vals[i] = QVariant::fromValue< QList<int> >(frame); //use this by default
WIN->requestProperty(NativeWindow::FrameExtents, QVariant::fromValue< QList<int> >(frame)); //make sure these values get saved permanently
+ WIN->setProperty(NativeWindow::FrameExtents, QVariant::fromValue< QList<int> >(frame));
}
}
qDebug() << "Property:" << list[i] << vals[i];
@@ -271,6 +272,7 @@ void RootSubWindow::propertiesChanged(QList<NativeWindow::Property> props, QList
qDebug() << "Got Widget Size:" << vals[i].toSize();
//WinWidget->setSizeHint( vals[i].toSize() );
//WinWidget->resize(vals[i].toSize() );
+ WinWidget->resize(vals[i].toSize());
this->resize( WIN->geometry().size() );
qDebug() << " - Size after change:" << WinWidget->size() << this->size();
break;
bgstack15