diff src/w32fns.c @ 73285:d1194b4c29b3

2006-10-07 Ralf Angeli <angeli@caeruleus.net> * w32fns.c (w32_createwindow): Honour left and top positions if supplied explicitly.
author Jason Rumney <jasonr@gnu.org>
date Sat, 07 Oct 2006 20:09:09 +0000
parents 9ce57eb0c589
children 1533f31680e5 8dd8c8286063
line wrap: on
line diff
--- a/src/w32fns.c	Sat Oct 07 19:29:19 2006 +0000
+++ b/src/w32fns.c	Sat Oct 07 20:09:09 2006 +0000
@@ -2108,7 +2108,12 @@
 	}
     }
 
-  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.  */