From: Jason Rumney Date: Sat, 7 Oct 2006 20:10:23 +0000 (+0000) Subject: 2006-10-07 Ralf Angeli X-Git-Tag: emacs-pretest-22.0.90~200 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2770d5898ced8f331b6e23c0157f37545920f3d2;p=emacs.git 2006-10-07 Ralf Angeli * w32fns.c (w32_createwindow): Honour left and top positions if supplied explicitly. --- diff --git a/src/ChangeLog b/src/ChangeLog index fe3d51f1a35..c20c577615f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2006-10-07 Ralf Angeli + + * w32fns.c (w32_createwindow): Honour left and top positions if + supplied explicitly. + 2006-10-06 Kim F. Storm * xdisp.c (pos_visible_p): Fix value when EOB is visible. diff --git a/src/w32fns.c b/src/w32fns.c index 4f07817b566..f7e211649e0 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -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. */