]> code.delx.au - gnu-emacs/commitdiff
2006-10-07 Ralf Angeli <angeli@caeruleus.net>
authorJason Rumney <jasonr@gnu.org>
Sat, 7 Oct 2006 20:10:23 +0000 (20:10 +0000)
committerJason Rumney <jasonr@gnu.org>
Sat, 7 Oct 2006 20:10:23 +0000 (20:10 +0000)
* w32fns.c (w32_createwindow): Honour left and top positions if
supplied explicitly.

src/ChangeLog
src/w32fns.c

index fe3d51f1a359d209cf2addd7cf7f092c804ee7e7..c20c577615f4ec1b10b57611a7d32cb39dd6560b 100644 (file)
@@ -1,3 +1,8 @@
+2006-10-07  Ralf Angeli  <angeli@caeruleus.net>
+
+       * w32fns.c (w32_createwindow): Honour left and top positions if
+       supplied explicitly.
+
 2006-10-06  Kim F. Storm  <storm@cua.dk>
 
        * xdisp.c (pos_visible_p): Fix value when EOB is visible.
index 4f07817b566fc501f895184626d035f47d916949..f7e211649e0770d4241bb854a88c96d3ea342139 100644 (file)
@@ -2108,7 +2108,12 @@ w32_createwindow (f)
        }
     }
 
-  if (EQ (left, Qunbound) && EQ (top, Qunbound))
+  if (f->size_hint_flags & USPosition || f->size_hint_flags & PPosition)
+    {
+      XSETINT (left, f->left_pos);
+      XSETINT (top, f->top_pos);
+    }
+  else if (EQ (left, Qunbound) && EQ (top, Qunbound))
     {
       /* When called with RES_TYPE_NUMBER, w32_get_arg will return zero
         for anything that is not a number and is not Qunbound.  */