diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-29 12:00:02 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-29 12:00:02 -0400 |
commit | a06db39550f3ee0a96dd5e75aa4a5cc724587324 (patch) | |
tree | 20d927bbe392a6c4f56e8df23eecdd3e9886d73f /src-qt5 | |
parent | Quick fix to disable setting the new global position on window move (temporary) (diff) | |
download | lumina-a06db39550f3ee0a96dd5e75aa4a5cc724587324.tar.gz lumina-a06db39550f3ee0a96dd5e75aa4a5cc724587324.tar.bz2 lumina-a06db39550f3ee0a96dd5e75aa4a5cc724587324.zip |
Fix the bitwise operations for the resize XCB operation
Diffstat (limited to 'src-qt5')
-rw-r--r-- | src-qt5/core/libLumina/NativeWindowSystem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src-qt5/core/libLumina/NativeWindowSystem.cpp b/src-qt5/core/libLumina/NativeWindowSystem.cpp index 5f2c8b6e..cea0e924 100644 --- a/src-qt5/core/libLumina/NativeWindowSystem.cpp +++ b/src-qt5/core/libLumina/NativeWindowSystem.cpp @@ -484,13 +484,13 @@ void NativeWindowSystem::ChangeWindowProperties(NativeWindow* win, QList< Native QSize sz = vals[ props.indexOf(NativeWindow::Size) ] .toSize(); valList.width = sz.width(); valList.height = sz.height(); - mask = mask & XCB_CONFIG_WINDOW_WIDTH & XCB_CONFIG_WINDOW_HEIGHT; + mask = mask | XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_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; + mask = mask | XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y; } xcb_configure_window_aux(QX11Info::connection(), win->id(), mask, &valList); } |