1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 11:50:51 -08:00

Set USER_POS in hint_flags to work around Cygwin problem.

gtkutil.c (xg_set_geometry): Set size in geometry string also.
(x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
This commit is contained in:
Jan Djärv 2010-04-18 13:24:59 +02:00
parent f8b91752dd
commit 22aa44a857
2 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
* gtkutil.c (xg_set_geometry): Set size in geometry string also.
(x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
2010-04-17 Eli Zaretskii <eliz@gnu.org>
Fix a crash when an NSM character is inserted at BEGV.

View file

@ -542,7 +542,9 @@ xg_set_geometry (f)
if (yneg)
top = -top;
sprintf (geom_str, "%c%d%c%d",
sprintf (geom_str, "=%dx%d%c%d%c%d",
FRAME_PIXEL_WIDTH (f),
FRAME_PIXEL_HEIGHT (f),
(xneg ? '-' : '+'), left,
(yneg ? '-' : '+'), top);
@ -951,6 +953,12 @@ x_wm_set_size_hint (f, flags, user_position)
else if (win_gravity == StaticGravity)
size_hints.win_gravity = GDK_GRAVITY_STATIC;
if (user_position)
{
hint_flags &= ~GDK_HINT_POS;
hint_flags |= GDK_HINT_USER_POS;
}
if (hint_flags != f->output_data.x->hint_flags
|| memcmp (&size_hints,
&f->output_data.x->size_hints,