X11 error from home grown application

Keith Packard keithp at keithp.com
Wed May 19 16:01:29 PDT 2010


On Wed, 19 May 2010 15:39:43 -0700, Aaron Plattner <aplattner at nvidia.com> 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.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20100519/ccb62599/attachment.pgp>


More information about the xorg mailing list