diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-29 14:31:32 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-29 14:31:32 -0400 |
commit | f5aa2fcb72bdfdcf7025912b277d9aaf20e038a0 (patch) | |
tree | 63992efd01d8f31069be9f6908c0c07077640875 | |
parent | Clean up a bunch of debugging, and add a "closing" animation to the rootSubWi... (diff) | |
download | lumina-f5aa2fcb72bdfdcf7025912b277d9aaf20e038a0.tar.gz lumina-f5aa2fcb72bdfdcf7025912b277d9aaf20e038a0.tar.bz2 lumina-f5aa2fcb72bdfdcf7025912b277d9aaf20e038a0.zip |
Try to fix up some window close/re-open issues
-rw-r--r-- | src-qt5/core/libLumina/NativeWindowSystem.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src-qt5/core/libLumina/NativeWindowSystem.cpp b/src-qt5/core/libLumina/NativeWindowSystem.cpp index 82ce8d1f..c80920c8 100644 --- a/src-qt5/core/libLumina/NativeWindowSystem.cpp +++ b/src-qt5/core/libLumina/NativeWindowSystem.cpp @@ -469,7 +469,7 @@ void NativeWindowSystem::UpdateWindowProperties(NativeWindow* win, QList< Native void NativeWindowSystem::ChangeWindowProperties(NativeWindow* win, QList< NativeWindow::Property > props, QList<QVariant> vals){ if(props.length() == 0 || vals.length()!=props.length() || win ==0 ){ return; } - qDebug() << "Change Window Properties:" << props << vals; + //qDebug() << "Change Window Properties:" << props << vals; if(props.contains(NativeWindow::Title)){ } @@ -513,12 +513,12 @@ void NativeWindowSystem::ChangeWindowProperties(NativeWindow* win, QList< Native } if(props.contains(NativeWindow::Visible)){ - qDebug() << "Check Window Visibility:" << vals[ props.indexOf(NativeWindow::Visible) ]; + //qDebug() << "Check Window Visibility:" << vals[ props.indexOf(NativeWindow::Visible) ]; if( vals[ props.indexOf(NativeWindow::Visible) ].toBool() ){ - qDebug() << " - Map it!"; + //qDebug() << " - Map it!"; xcb_map_window(QX11Info::connection(), win->id()); }else{ - qDebug() << " - Unmap it!"; + //qDebug() << " - Unmap it!"; xcb_unmap_window(QX11Info::connection(), win->id()); } } @@ -657,7 +657,7 @@ int NativeWindowSystem::currentWorkspace(){ //NativeWindowEventFilter interactions void NativeWindowSystem::NewWindowDetected(WId id){ //Make sure this can be managed first - if(findWindow(id) != 0){ return; } //already managed + if(findWindow(id, false) != 0){ qDebug() << "Window Already Managed!!!!"; return; } //already managed xcb_get_window_attributes_cookie_t cookie = xcb_get_window_attributes(QX11Info::connection(), id); xcb_get_window_attributes_reply_t *attr = xcb_get_window_attributes_reply(QX11Info::connection(), cookie, NULL); if(attr == 0){ return; } //could not get attributes of window |