diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-29 12:48:09 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-29 12:48:09 -0400 |
commit | c4e76b7425783af1e72ea76b8ab885e97abe9b0b (patch) | |
tree | 5919837364d4e2dedda4420f539eeb6b5b94c7ee /src-qt5/core/libLumina | |
parent | Fix up the saving/using of the global position property (diff) | |
download | lumina-c4e76b7425783af1e72ea76b8ab885e97abe9b0b.tar.gz lumina-c4e76b7425783af1e72ea76b8ab885e97abe9b0b.tar.bz2 lumina-c4e76b7425783af1e72ea76b8ab885e97abe9b0b.zip |
Try to fix up the set geometry/position routine so it does not change the other property
Diffstat (limited to 'src-qt5/core/libLumina')
-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); } |