aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Djärv2010-04-18 13:24:59 +0200
committerJan Djärv2010-04-18 13:24:59 +0200
commit22aa44a857f87f99b6fb77ff148ff1481dbf29f1 (patch)
tree15d674e60d83f2a0b57d25bf7cbd5867da32f532
parentf8b91752dda437746ff89e62a63760aa6efe0dda (diff)
downloademacs-22aa44a857f87f99b6fb77ff148ff1481dbf29f1.tar.gz
emacs-22aa44a857f87f99b6fb77ff148ff1481dbf29f1.zip
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).
-rw-r--r--src/ChangeLog5
-rw-r--r--src/gtkutil.c10
2 files changed, 14 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0fe9d8d0d53..9789b3dbd04 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-04-18 Jan Djärv <jan.h.d@swipnet.se>
2
3 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
5
12010-04-17 Eli Zaretskii <eliz@gnu.org> 62010-04-17 Eli Zaretskii <eliz@gnu.org>
2 7
3 Fix a crash when an NSM character is inserted at BEGV. 8 Fix a crash when an NSM character is inserted at BEGV.
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 25da0baec79..c2b425b4562 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -542,7 +542,9 @@ xg_set_geometry (f)
542 if (yneg) 542 if (yneg)
543 top = -top; 543 top = -top;
544 544
545 sprintf (geom_str, "%c%d%c%d", 545 sprintf (geom_str, "=%dx%d%c%d%c%d",
546 FRAME_PIXEL_WIDTH (f),
547 FRAME_PIXEL_HEIGHT (f),
546 (xneg ? '-' : '+'), left, 548 (xneg ? '-' : '+'), left,
547 (yneg ? '-' : '+'), top); 549 (yneg ? '-' : '+'), top);
548 550
@@ -951,6 +953,12 @@ x_wm_set_size_hint (f, flags, user_position)
951 else if (win_gravity == StaticGravity) 953 else if (win_gravity == StaticGravity)
952 size_hints.win_gravity = GDK_GRAVITY_STATIC; 954 size_hints.win_gravity = GDK_GRAVITY_STATIC;
953 955
956 if (user_position)
957 {
958 hint_flags &= ~GDK_HINT_POS;
959 hint_flags |= GDK_HINT_USER_POS;
960 }
961
954 if (hint_flags != f->output_data.x->hint_flags 962 if (hint_flags != f->output_data.x->hint_flags
955 || memcmp (&size_hints, 963 || memcmp (&size_hints,
956 &f->output_data.x->size_hints, 964 &f->output_data.x->size_hints,