diff options
author | Ken Moore <ken@ixsystems.com> | 2018-01-29 18:23:45 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2018-01-29 18:23:45 -0500 |
commit | b555b8b275c4a6d1d301173a0aabd5b295d0493c (patch) | |
tree | 9e3c711852464a4709c56fe9b0e0bffc230509d4 /src-qt5/core/lumina-desktop-unified/src-events | |
parent | Make sure that the desktop canvas is always 2nd from the top of the stack of ... (diff) | |
parent | Couple more minor tweaks - trying to get the layering working properly. (diff) | |
download | lumina-b555b8b275c4a6d1d301173a0aabd5b295d0493c.tar.gz lumina-b555b8b275c4a6d1d301173a0aabd5b295d0493c.tar.bz2 lumina-b555b8b275c4a6d1d301173a0aabd5b295d0493c.zip |
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-events')
-rw-r--r-- | src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.cpp b/src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.cpp index e23050f3..b08f9109 100644 --- a/src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.cpp +++ b/src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.cpp @@ -779,8 +779,10 @@ void NativeWindowSystem::NewWindowDetected(WId id){ if(attr == 0){ return; } //could not get attributes of window if(attr->override_redirect){ free(attr); return; } //window has override redirect set (do not manage) free(attr); + xcb_reparent_window(QX11Info::connection(), id, QX11Info::appRootWindow(), 0, 0); //Now go ahead and create/populate the container for this window NativeWindowObject *win = new NativeWindowObject(id); + //Register for events from this window registerClientEvents(win->id()); NWindows << win; @@ -964,7 +966,7 @@ void NativeWindowSystem::CheckDamageID(WId win){ } void NativeWindowSystem::raiseWindow(NativeWindowObject *win){ - qDebug() << "Raise Window:" << win->name(); + qDebug() << "Raise Window:" << win->name() << win->id(); //Note: Always ensure the desktop canvas is right under the main window that is raised xcb_circulate_window(QX11Info::connection(), XCB_CIRCULATE_RAISE_LOWEST, Lumina::ROOTWIN->viewID()); xcb_circulate_window(QX11Info::connection(), XCB_CIRCULATE_RAISE_LOWEST ,win->id()); @@ -972,7 +974,7 @@ void NativeWindowSystem::raiseWindow(NativeWindowObject *win){ void NativeWindowSystem::lowerWindow(NativeWindowObject *win){ - qDebug() << "Lower Window:" << win->name(); + qDebug() << "Lower Window:" << win->name() << win->id(); xcb_circulate_window(QX11Info::connection(), XCB_CIRCULATE_LOWER_HIGHEST ,win->id()); } |