dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] pnetlib ChangeLog Xsharp/TopLevelWindow.cs


From: Heiko Weiss
Subject: [dotgnu-pnet-commits] pnetlib ChangeLog Xsharp/TopLevelWindow.cs
Date: Fri, 18 Apr 2008 12:08:07 +0000

CVSROOT:        /sources/dotgnu-pnet
Module name:    pnetlib
Changes by:     Heiko Weiss <brubbel>   08/04/18 12:08:07

Modified files:
        .              : ChangeLog 
        Xsharp         : TopLevelWindow.cs 

Log message:
        fixed a reparent and moving problem, if the window is embedded in 
another 
        apps window.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2530&r2=1.2531
http://cvs.savannah.gnu.org/viewcvs/pnetlib/Xsharp/TopLevelWindow.cs?cvsroot=dotgnu-pnet&r1=1.36&r2=1.37

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2530
retrieving revision 1.2531
diff -u -b -r1.2530 -r1.2531
--- ChangeLog   10 Apr 2008 06:24:11 -0000      1.2530
+++ ChangeLog   18 Apr 2008 12:08:06 -0000      1.2531
@@ -1,4 +1,10 @@
+2008-04-18  Heiko Weiss <address@hidden>
+
+       * Xsharp/TopLevelWindow.cs: fixed a reparent and moving problem, if the 
+       window is embedded in another apps window.
+
 2008-04-10  Heiko Weiss <address@hidden>
+
        * System.Drawing.Xsharp/DrawingMdiClient.cs, 
        System.Drawing.Xsharp/DrawingPopupWindow.cs,
        System.Drawing.Xsharp/DrawingTopLevelWindow.cs,

Index: Xsharp/TopLevelWindow.cs
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/Xsharp/TopLevelWindow.cs,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- Xsharp/TopLevelWindow.cs    4 Jul 2006 05:07:42 -0000       1.36
+++ Xsharp/TopLevelWindow.cs    18 Apr 2008 12:08:07 -0000      1.37
@@ -1758,6 +1758,12 @@
                                if(!hasPrimaryFocus)
                                {
                                        focusWidget = widget;
+                                       /* 
+                                               Some WindowManager activate and 
sets the focus to the window only
+                                               if mouse is positioned on it.
+                                               So simulte here, that we got 
the focus.
+                                       */
+                                       this.PrimaryFocusIn();
                                }
                                else if(focusWidget != widget)
                                {
@@ -2257,6 +2263,15 @@
                                                                         0, -1);
                                                        }
                                                }
+                                               
+                                               if(xevent.xconfigure.x != x ||
+                                                  xevent.xconfigure.y != y ) 
+                                               {
+                                                               x = 
xevent.xconfigure.x;
+                                                               y = 
xevent.xconfigure.y;
+                                                               OnMoveResize(x, 
y, width, height);
+                                               }
+                                               
                                                if(xevent.send_event || 
!reparented)
                                                {
                                                        // The window manager 
moved us to a new position.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]