FVWM: BadMatch error of FvwmPager

From: Nobutaka Suzuki <nobuta-s_at_is.aist-nara.ac.jp>
Date: Thu, 18 Apr 1996 19:14:25 +0900

As someone has mentioned in this list, FvwmPager dies when moving
a window on a non-current desk to the current desk, due to
BadMatch error resulted from XSetInputFocus() (at l. 1444,
x_pager.c). It seems that the problem occurs because of "delayed"
execution of WindowDesk function which is called by SendInfo()
(l. 1417, x_pager.c); that is, if WindowDesk is not done by fvwm
when the XSetInputFocus() is called, the XSetInputFocus() tries
to set focus on un-viewable window.

I'm sorry I don't know a good solution to the problem, but a
compromise would be just commenting the XSetInputFocus() out,
unless people are eager to set focus on the moved window...
----
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 Thu Apr 18 18:34:19 1996
_at_@ -1435,6 +1435,7 @@
             MoveResizePagerView(t);
           SendInfo(fd,"Raise",t->w);
         }
+ /***
       if(Scr.CurrentDesk == t->desk)
         {
           if(t->flags & ICONIFIED)
_at_@ -1442,6 +1443,7 @@
           else
             XSetInputFocus (dpy, t->w, RevertToParent, Event->xbutton.time);
         }
+ ***/
     }
 }
 

--
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 Thu Apr 18 1996 - 05:12:21 BST

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