xmessage: -nearmouse doesn't work

Bauke Jan Douma bjdouma at xs4all.nl
Sun Nov 5 04:55:10 PST 2006


xmessage -nearmouse doesn't do what it promises.
Following diff makes it work:


--- xmessage.c.orig	2006-11-05 13:43:28.000000000 +0100
+++ xmessage.c	2006-11-05 13:43:28.000000000 +0100
@@ -318,7 +318,7 @@ main (int argc, char *argv[])
  	exit (1);
      }

-    XtSetMappedWhenManaged(top, FALSE);
+    /*XtSetMappedWhenManaged(top, FALSE);*/
      XtRealizeWidget(top);

      /* do WM_DELETE_WINDOW before map */
@@ -329,7 +329,7 @@ main (int argc, char *argv[])
      else if (qres.nearmouse)
  	position_near_mouse(top);

-    XtMapWidget(top);
+    /*XtMapWidget(top);*/

      if (qres.timeout_secs)
  	XtAppAddTimeOut(app_con, 1000*qres.timeout_secs, time_out, NULL);



bjd



More information about the xorg mailing list