Commit 22aa44a8 authored by Jan Djärv's avatar Jan Djärv

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).
parent f8b91752
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.
......
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment