news@utah-gr.UUCP (Network News Owner) (05/13/88)
xmag, the X magnification program posted by Jim Fulton about a month ago, gets my vote as one of the most useful x utilities around. However, it has one annoying "feature": the cursor that belongs to the window that xmag is magnifying appears in the enlargement, usually on top of the detail that I was examining. So I've hacked xmag not to do this. Now, only what was in xmag's selection rectangle at the time the mouse button was pushed is displayed. There might be times when you really do want to see the client cursor; in that case you can give the option "-c" on the command line. Here are diff -e diffs: From: moore@cdr.utah.edu.uucp (Tim Moore) Path: cdr.utah.edu!moore -------------------------Cut Here--------------------------------------------- 607a /* If we don't want a client cursor in the magnified view, we wait */ /* 'till now to ungrab the pointer. */ if (include_cursor == False) { XUngrabPointer (dpy, CurrentTime); XFlush (dpy); } . 578,579c /* if we want to include the client window's cursor in the mag, */ /* then ungrab now. */ if (include_cursor == True) { XUngrabPointer (dpy, CurrentTime); XFlush (dpy); } . 104a case 'c': /* -c */ include_cursor = True; continue; . 68a " -c include client cursor", . 42c GC fillGC = (GC)NULL; /* for drawing enlargement */ int include_cursor = False; /* whether or not to include */ /* client cursor */ . --------------------------Cut Here--------------------------------------------- -Tim Moore 4560 M.E.B. internet:moore@cs.utah.edu University of Utah ABUSENET:{ihnp4, decvax}!utah-cs!moore Salt Lake City, UT 84112