Re: FVWM: Here's a patch for WarpTowindow and FocusOnly functions

From: Nobutaka Suzuki <nobuta-s_at_is.aist-nara.ac.jp>
Date: Sat, 20 Apr 1996 16:12:36 +0900

bradym> This adds two functions: WarpToWindow and FocusOnly.
...snip...
bradym> FocusOnly is pretty simple, and it just changes the focus.

FocusOnly would be useful for the problem that FvwmPager
terminates with BadMatch error as well, I think. With the
following patch to MoveWindow() in x_pager.c, FocusOnly should be
executed *after* WindowDesk (on line 1417 of x_pager.c) so
BadMatch error might be avoided.
----
Nobutaka Suzuki <nobuta-s_at_is.aist-nara.ac.jp> 
 Graduate School of Information Science
 Nara Institute of Science and Technology


--- x_pager.c.orig Mon Mar 25 02:33:47 1996
+++ x_pager.c Sat Apr 20 15:26:38 1996
_at_@ -1438,9 +1438,9 @@
       if(Scr.CurrentDesk == t->desk)
         {
           if(t->flags & ICONIFIED)
- XSetInputFocus (dpy, t->icon_w, RevertToParent, Event->xbutton.time);
+ SendInfo(fd,"FocusOnly",t->icon_w);
           else
- XSetInputFocus (dpy, t->w, RevertToParent, Event->xbutton.time);
+ SendInfo(fd,"FocusOnly",t->w);
         }
     }
 }

--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Sat Apr 20 1996 - 02:10:24 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:58 BST