aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/NativeWindowSystem.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-06-29 12:57:13 -0400
committerKen Moore <ken@ixsystems.com>2017-06-29 12:57:13 -0400
commit796d84c2a1716002c07cdfc9dfabc3f8dc718df9 (patch)
tree1a2b734d0cd4944ec4a4437ba8aebf99c324bfb6 /src-qt5/core/libLumina/NativeWindowSystem.cpp
parentTry to fix up the set geometry/position routine so it does not change the oth... (diff)
downloadlumina-796d84c2a1716002c07cdfc9dfabc3f8dc718df9.tar.gz
lumina-796d84c2a1716002c07cdfc9dfabc3f8dc718df9.tar.bz2
lumina-796d84c2a1716002c07cdfc9dfabc3f8dc718df9.zip
Ensure that we never change the x11 position property on a window - that should always be (0,0) relative to the parent.
Diffstat (limited to 'src-qt5/core/libLumina/NativeWindowSystem.cpp')
-rw-r--r--src-qt5/core/libLumina/NativeWindowSystem.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src-qt5/core/libLumina/NativeWindowSystem.cpp b/src-qt5/core/libLumina/NativeWindowSystem.cpp
index b076f474..9359b9f2 100644
--- a/src-qt5/core/libLumina/NativeWindowSystem.cpp
+++ b/src-qt5/core/libLumina/NativeWindowSystem.cpp
@@ -477,19 +477,19 @@ void NativeWindowSystem::ChangeWindowProperties(NativeWindow* win, QList< Native
if(props.contains(NativeWindow::Icon)){
}
- if(props.contains(NativeWindow::Size) || props.contains(NativeWindow::GlobalPos) ){
+ if(props.contains(NativeWindow::Size) ){//|| props.contains(NativeWindow::GlobalPos) ){
xcb_configure_window_value_list_t valList;
uint16_t mask = 0;
- if(props.contains(NativeWindow::Size)){
+ //if(props.contains(NativeWindow::Size)){
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;
- }else{
+ /*}else{
valList.width = win->property(NativeWindow::Size).toSize().width();
valList.height = win->property(NativeWindow::Size).toSize().height();
- }
- if(props.contains(NativeWindow::GlobalPos)){
+ }*/
+ /*if(props.contains(NativeWindow::GlobalPos)){
QPoint pt = vals[ props.indexOf(NativeWindow::GlobalPos) ] .toPoint();
valList.x = pt.x();
valList.y = pt.y();
@@ -497,7 +497,7 @@ void NativeWindowSystem::ChangeWindowProperties(NativeWindow* win, QList< Native
}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);
}
if(props.contains(NativeWindow::Name)){
bgstack15