aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop-unified/src-events
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2018-01-29 15:09:37 -0500
committerKen Moore <ken@ixsystems.com>2018-01-29 15:09:37 -0500
commit331107f04943e5719b3d66e31b9dd9d4c78319b8 (patch)
tree0e33aa5b55970ec8c55600f2eb548bbb081c8df8 /src-qt5/core/lumina-desktop-unified/src-events
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-331107f04943e5719b3d66e31b9dd9d4c78319b8.tar.gz
lumina-331107f04943e5719b3d66e31b9dd9d4c78319b8.tar.bz2
lumina-331107f04943e5719b3d66e31b9dd9d4c78319b8.zip
Couple more minor tweaks - trying to get the layering working properly.
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-events')
-rw-r--r--src-qt5/core/lumina-desktop-unified/src-events/NativeWindowSystem.cpp6
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 28c223ab..494b63c3 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,13 +966,13 @@ void NativeWindowSystem::CheckDamageID(WId win){
}
void NativeWindowSystem::raiseWindow(NativeWindowObject *win){
- qDebug() << "Raise Window:" << win->name();
+ qDebug() << "Raise Window:" << win->name() << win->id();
xcb_circulate_window(QX11Info::connection(), XCB_CIRCULATE_RAISE_LOWEST ,win->id());
}
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());
}
bgstack15