Re: X11 error from home grown application
Aaron Plattner wrote: On Wed, May 19, 2010 at 01:02:35PM -0700, Keith Packard wrote: On Wed, 19 May 2010 14:58:16 -0400, Geoffrey wrote: Can you define 'viewable'? From the X protocol glossary: .LP \fBViewable\fP .IN "Viewable" "" "@DEF@" .IP A window is viewable if it and all of its ancestors are mapped. This does not imply that any portion of the window is actually visible. Graphics requests can be performed on a window when it is not viewable, but output will not be retained unless the server is maintaining backing store. That seems misleading... the server makes a distinction between 'realized' and 'viewable': 1. The root window is always realized. 2. A window is realized if it's mapped and its parent is realized. 3. A window is viewable if it's realized and its class is InputOutput. SetInputFocus only checks that the window is realized, so it should work with InputOnly windows. The comment is pretty fantastic: /* It is a match error to try to set the input focus to an unviewable window. */ if(!focusWin->realized) return(BadMatch); So something like this could well be producing this error? if (ctrl->MODE == Browse) ClickButton (ctrl->b_create); As the ClickButton would try and set focus on this window. -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them." - Thomas Jefferson ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: X11 error from home grown application
On Wed, 19 May 2010 15:39:43 -0700, Aaron Plattner wrote: > That seems misleading... the server makes a distinction between 'realized' > and 'viewable': Indeed it does; 'viewable' wrt the protocol is the same as 'realized' wrt the X server. The protocol doesn't have a term for 'viewable and InputOutput'. > SetInputFocus only checks that the window is realized, so it should work > with InputOnly windows. The comment is pretty fantastic: > > /* It is a match error to try to set the input focus to an > unviewable window. */ > if(!focusWin->realized) > return(BadMatch); The comment is using the protocol terms while the code uses the server identifier. You expect consistency? -- keith.pack...@intel.com pgpUoiZb2SlDj.pgp Description: PGP signature ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: X11 error from home grown application
On Wed, May 19, 2010 at 01:02:35PM -0700, Keith Packard wrote: > On Wed, 19 May 2010 14:58:16 -0400, Geoffrey > wrote: > > > Can you define 'viewable'? > > From the X protocol glossary: > > .LP > \fBViewable\fP > .IN "Viewable" "" "@DEF@" > .IP > A window is viewable if it and all of its ancestors are mapped. > This does not imply that any portion of the window is actually visible. > Graphics requests can be performed on a window when it is not viewable, > but output will not be retained unless the server is maintaining > backing store. That seems misleading... the server makes a distinction between 'realized' and 'viewable': 1. The root window is always realized. 2. A window is realized if it's mapped and its parent is realized. 3. A window is viewable if it's realized and its class is InputOutput. SetInputFocus only checks that the window is realized, so it should work with InputOnly windows. The comment is pretty fantastic: /* It is a match error to try to set the input focus to an unviewable window. */ if(!focusWin->realized) return(BadMatch); ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: X11 error from home grown application
On Wed, 19 May 2010 14:58:16 -0400, Geoffrey wrote: > Can you define 'viewable'? From the X protocol glossary: .LP \fBViewable\fP .IN "Viewable" "" "@DEF@" .IP A window is viewable if it and all of its ancestors are mapped. This does not imply that any portion of the window is actually visible. Graphics requests can be performed on a window when it is not viewable, but output will not be retained unless the server is maintaining backing store. > > > > > Cheers, > > Julien > > > > > -- > Until later, Geoffrey > > "I predict future happiness for America if they can prevent > the government from wasting the labors of the people under > the pretense of taking care of them." > - Thomas Jefferson > ___ > xorg@lists.freedesktop.org: X.Org support > Archives: http://lists.freedesktop.org/archives/xorg > Info: http://lists.freedesktop.org/mailman/listinfo/xorg > Your subscription address: kei...@keithp.com -- keith.pack...@intel.com pgpnJ4BkYKIPe.pgp Description: PGP signature ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: X11 error from home grown application
On Wed, May 19, 2010 at 14:58:16 -0400, Geoffrey wrote: > Julien Cristau wrote: > >On Tue, May 11, 2010 at 15:54:50 -0400, Geoffrey wrote: > > > >>Anyone know where I can start looking to figure out why I'm getting > >>the following error in our application: > >> > >>X Error of failed request: BadMatch (invalid parameter attributes) > >> Major opcode of failed request: 42 (X_SetInputFocus) > >> Serial number of failed request: 7398113 > >> Current serial number in output stream: 7398114 > >> > >Quoting from XSetInputFocus(3): > > The specified focus window must be viewable at the time XSetInputFocus > > is called, or a BadMatch error results. > > Can you define 'viewable'? > The XMapWindow manpage has a description. AFAICT it means the window and all its ancestors are mapped. Cheers, Julien ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: X11 error from home grown application
Julien Cristau wrote: On Tue, May 11, 2010 at 15:54:50 -0400, Geoffrey wrote: Anyone know where I can start looking to figure out why I'm getting the following error in our application: X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 42 (X_SetInputFocus) Serial number of failed request: 7398113 Current serial number in output stream: 7398114 Quoting from XSetInputFocus(3): The specified focus window must be viewable at the time XSetInputFocus is called, or a BadMatch error results. Can you define 'viewable'? Cheers, Julien -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them." - Thomas Jefferson ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: X11 error from home grown application
On Tue, May 11, 2010 at 15:54:50 -0400, Geoffrey wrote: > Anyone know where I can start looking to figure out why I'm getting > the following error in our application: > > X Error of failed request: BadMatch (invalid parameter attributes) > Major opcode of failed request: 42 (X_SetInputFocus) > Serial number of failed request: 7398113 > Current serial number in output stream: 7398114 > Quoting from XSetInputFocus(3): The specified focus window must be viewable at the time XSetInputFocus is called, or a BadMatch error results. Cheers, Julien ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Re: X11 error from home grown application
On Tue, May 11, 2010 at 2:54 PM, Geoffrey wrote: > Anyone know where I can start looking to figure out why I'm getting the > following error Have you tried xscope? http://cgit.freedesktop.org/xorg/app/xscope/ Pat --- On Tue, May 11, 2010 at 2:54 PM, Geoffrey wrote: > Anyone know where I can start looking to figure out why I'm getting the > following error in our application: > > X Error of failed request: BadMatch (invalid parameter attributes) > Major opcode of failed request: 42 (X_SetInputFocus) > Serial number of failed request: 7398113 > Current serial number in output stream: 7398114 > > -- > Until later, Geoffrey > > "I predict future happiness for America if they can prevent > the government from wasting the labors of the people under > the pretense of taking care of them." > - Thomas Jefferson > ___ > xorg@lists.freedesktop.org: X.Org support > Archives: http://lists.freedesktop.org/archives/xorg > Info: http://lists.freedesktop.org/mailman/listinfo/xorg > ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg
X11 error from home grown application
Anyone know where I can start looking to figure out why I'm getting the following error in our application: X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 42 (X_SetInputFocus) Serial number of failed request: 7398113 Current serial number in output stream: 7398114 -- Until later, Geoffrey "I predict future happiness for America if they can prevent the government from wasting the labors of the people under the pretense of taking care of them." - Thomas Jefferson ___ xorg@lists.freedesktop.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg