aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorArmin Berres <armin.berres@basyskom.de>2010-10-25 10:27:19 +0200
committerStanislav Ionascu <stanislav.ionascu@nokia.com>2010-10-28 14:28:16 +0300
commitaeba473380631a9b4dcf51499595dfed9c5f3086 (patch)
treed4106ce29a4e5bb5a1fdb5c04a558846fc217873 /tools
parent93d965ab803da761bcbba023346eb55e475f9858 (diff)
Changes: Use effectiveWinId() instead of winId()
RevBy: Daniel d'Andrada, Michael Hasselmann, Stanislav Ionascu Details: The meego graphcissystem does not support native windows inside native windows (This will change but not give optimal performance). Normally just the toplevel window is a native window, all other windows/widgets are handled inside Qt. When calling winId() on one of these widgets a native window will be created. MeeGo Toch uses winId() in quite some places which causes us to create native windows where we do not want them. By using effectiveWinId() instead we get the winId of the actual toplevel window. After these change two MWindows must not have the same parent QWidget anymore.
Diffstat (limited to 'tools')
-rw-r--r--tools/m-servicefwgen.d/m-servicefwgen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/m-servicefwgen.d/m-servicefwgen.cpp b/tools/m-servicefwgen.d/m-servicefwgen.cpp
index e994ca4f..21b8f4bf 100644
--- a/tools/m-servicefwgen.d/m-servicefwgen.cpp
+++ b/tools/m-servicefwgen.d/m-servicefwgen.cpp
@@ -1377,7 +1377,7 @@ void doChainTaskHandling( QString &line, bool& inChainTask, QTextStream& newProx
\n\
MWindow *win = MApplication::instance()->activeWindow();\n\
if (win) {\n\
- windowId = win->winId();\n\
+ windowId = win->effectiveWinId();\n\
}\n\
\n\
" + line + "\n\