[rkward-cvs] SF.net SVN: rkward:[2526] trunk/rkward/rkward/windows/ detachedwindowcontainer.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Wed Jun 10 19:44:12 UTC 2009


Revision: 2526
          http://rkward.svn.sourceforge.net/rkward/?rev=2526&view=rev
Author:   tfry
Date:     2009-06-10 19:44:12 +0000 (Wed, 10 Jun 2009)

Log Message:
-----------
Fix detached window placment for newly created windows (i.e. caught x11 windows)

Modified Paths:
--------------
    trunk/rkward/rkward/windows/detachedwindowcontainer.cpp

Modified: trunk/rkward/rkward/windows/detachedwindowcontainer.cpp
===================================================================
--- trunk/rkward/rkward/windows/detachedwindowcontainer.cpp	2009-06-10 19:42:17 UTC (rev 2525)
+++ trunk/rkward/rkward/windows/detachedwindowcontainer.cpp	2009-06-10 19:44:12 UTC (rev 2526)
@@ -59,6 +59,7 @@
 
 // capture widget
 	setGeometry (widget_to_capture->frameGeometry ());
+	if (!widget_to_capture->isWindow ()) move (widget_to_capture->mapToGlobal (widget_to_capture->pos ()));
 	widget_to_capture->setParent (this);
 	setCentralWidget (widget_to_capture);
 	widget_to_capture->show ();


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list