From c4e76b7425783af1e72ea76b8ab885e97abe9b0b Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 29 Jun 2017 12:48:09 -0400 Subject: Try to fix up the set geometry/position routine so it does not change the other property --- src-qt5/core/libLumina/NativeWindowSystem.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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); } -- cgit