From fe95db7685ed943a73a5de127b3f587e42f682ff Mon Sep 17 00:00:00 2001 From: Shawn Rutledge <shawn.rutledge@digia.com> Date: Thu, 4 Apr 2013 17:49:46 +0200 Subject: [PATCH] Arbitrary window doesn't appear transient on X11, but a dialog does After verifying that WM_TRANSIENT_FOR was being set correctly, the child window was still showing up at an arbitrary place with OpenBox as the window manager. If it's marked as a dialog though, it will be centered properly over the main window. Change-Id: I0c1ae0755f51b564d986134520d036b72658fae4 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com> --- examples/gallery/content/ChildWindow.qml | 1 + src/experimental/Dialog.qml | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/gallery/content/ChildWindow.qml b/examples/gallery/content/ChildWindow.qml index c4094209f..5473e834e 100644 --- a/examples/gallery/content/ChildWindow.qml +++ b/examples/gallery/content/ChildWindow.qml @@ -53,6 +53,7 @@ Window { height: 400 title: "child window" + flags: Qt.Dialog Rectangle { color: syspal.window diff --git a/src/experimental/Dialog.qml b/src/experimental/Dialog.qml index 5dc933db7..e2f7989e3 100644 --- a/src/experimental/Dialog.qml +++ b/src/experimental/Dialog.qml @@ -54,6 +54,7 @@ Window { width: 400 height: 200 + flags: Qt.Dialog signal closed signal accepted -- GitLab