diff src/gtkutil.c @ 107891:bf5fce1e8e34

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).
author Jan D. <jan.h.d@swipnet.se>
date Sun, 18 Apr 2010 13:24:59 +0200
parents 2a74858bccc0
children d94009e7a0cc
line wrap: on
line diff
--- a/src/gtkutil.c	Sat Apr 17 23:13:09 2010 -0500
+++ b/src/gtkutil.c	Sun Apr 18 13:24:59 2010 +0200
@@ -542,7 +542,9 @@
       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 @@
   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,