Subject: FVWM2 Xinerama patch 4

From: Sidik Isani <[email-masked]>
Date: Sun, 23 Sep 2001 15:40:54 -1000 (HST)

diff -ru fvwm-snap-20010916/fvwm/move_resize.c fvwm-2.5.0-cfht/fvwm/move_resize.c
--- fvwm-snap-20010916/fvwm/move_resize.c	Fri Sep  7 04:37:27 2001
+++ fvwm-2.5.0-cfht/fvwm/move_resize.c	Tue Sep 18 20:27:18 2001
@@ -457,11 +457,17 @@
 {
   char str [100];
   int offset;
+  int screen_x, screen_y;
 
+  /*
+   * Translate x,y into local screen coordinates, in case Xinerama is used.
+   */
+  FScreenGetScreenXY(x, y, &screen_x, &screen_y);
+
   if (Scr.gs.do_hide_position_window)
     return;
   position_geometry_window(eventp);
-  (void) sprintf (str, GEOMETRY_WINDOW_POS_STRING, x, y);
+  (void) sprintf (str, GEOMETRY_WINDOW_POS_STRING, screen_x, screen_y);
   if (Init)
   {
     XClearWindow(dpy, Scr.SizeWindow);
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [email-masked].
To report problems, send mail to [email-masked]