diff options
Diffstat (limited to 'src-qt5/core')
-rw-r--r-- | src-qt5/core/libLumina/NativeWindowSystem.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/NativeWindowSystem.cpp b/src-qt5/core/libLumina/NativeWindowSystem.cpp index cea0e924..b076f474 100644 --- a/src-qt5/core/libLumina/NativeWindowSystem.cpp +++ b/src-qt5/core/libLumina/NativeWindowSystem.cpp @@ -485,12 +485,18 @@ void NativeWindowSystem::ChangeWindowProperties(NativeWindow* win, QList< Native valList.width = sz.width(); valList.height = sz.height(); mask = mask | XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT; + }else{ + valList.width = win->property(NativeWindow::Size).toSize().width(); + valList.height = win->property(NativeWindow::Size).toSize().height(); } if(props.contains(NativeWindow::GlobalPos)){ QPoint pt = vals[ props.indexOf(NativeWindow::GlobalPos) ] .toPoint(); valList.x = pt.x(); valList.y = pt.y(); mask = mask | XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y; + }else{ + valList.x = win->property(NativeWindow::GlobalPos).toPoint().x(); + valList.y = win->property(NativeWindow::GlobalPos).toPoint().y(); } xcb_configure_window_aux(QX11Info::connection(), win->id(), mask, &valList); } |