diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-29 10:28:23 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-29 10:28:23 -0400 |
commit | fd0224378284bb98a03a87220eef0c02894619de (patch) | |
tree | cd9910f29807601cf9140ae143e76bc5e6509748 /src-qt5 | |
parent | Get the window size/position change detection implemented. (diff) | |
download | lumina-fd0224378284bb98a03a87220eef0c02894619de.tar.gz lumina-fd0224378284bb98a03a87220eef0c02894619de.tar.bz2 lumina-fd0224378284bb98a03a87220eef0c02894619de.zip |
Add the ability to change the "Size" property for windows.
Diffstat (limited to 'src-qt5')
-rw-r--r-- | src-qt5/core/libLumina/NativeWindowSystem.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src-qt5/core/libLumina/NativeWindowSystem.cpp b/src-qt5/core/libLumina/NativeWindowSystem.cpp index 8d732d8c..d540d86e 100644 --- a/src-qt5/core/libLumina/NativeWindowSystem.cpp +++ b/src-qt5/core/libLumina/NativeWindowSystem.cpp @@ -476,9 +476,16 @@ void NativeWindowSystem::ChangeWindowProperties(NativeWindow* win, QList< Native if(props.contains(NativeWindow::Icon)){ } - if(props.contains(NativeWindow::MinSize) || props.contains(NativeWindow::MaxSize) - || props.contains(NativeWindow::Size) || props.contains(NativeWindow::GlobalPos) ){ - + if(props.contains(NativeWindow::Size) ){ + xcb_configure_window_value_list_t valList; + uint16_t mask = 0; + //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; + //} + xcb_configure_window_aux(QX11Info::connection(), win->id(), mask, &valList); } if(props.contains(NativeWindow::Name)){ |