# HG changeset patch # User Jason Rumney # Date 1160251749 0 # Node ID d1194b4c29b33143ab20f3a11d31c07e9de5fccd # Parent cfe54f2d1aa828cd2563a47187b604166f496b40 2006-10-07 Ralf Angeli * w32fns.c (w32_createwindow): Honour left and top positions if supplied explicitly. diff -r cfe54f2d1aa8 -r d1194b4c29b3 src/w32fns.c --- 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. */