changeset 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 cfe54f2d1aa8
children 556eb1ec5f98
files src/w32fns.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
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.  */