public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cygwin X server accepts xfixes version 5.0 but doesn't handle xcb_xfixes_hide_cursor
@ 2020-10-15 19:31 Frank Eske
  2020-10-25 16:20 ` Jon Turney
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Eske @ 2020-10-15 19:31 UTC (permalink / raw)
  To: cygwin

I'm building an XCB-based application that uses xcb_xfixes_hide_cursor. The
X server reports back version 5.0 in xcb_fixes_query_version_reply and
accepts xcb_xfixes_hide_cursor requests, but does not hide the cursor. When
omitting the xcb_fixes_query_version operation, the xcb_xfixes_hide_cursor
is (properly) rejected. Compiling and running the same program under
Fedora, the cursor is hidden when running natively. When running an ssh
remote xterm to Fedora, the hide_cursor again does nothing.

The associated X11/extensions/Xfixes.h XFixesHideCursor() works
identically. It fails to do anything but does not report any error
indication.

When testing this on Fedora, I also noticed that xterm hides the cursor in
exactly the same manner I want for my application, and doesn't on Cygwin
(where it always remains visible.) That is, typing hides the cursor and
cursor movement shows it again. This should eliminate the need for a test
case which, because of all the ancillary setup needed, would be quite large.

Possibly the simplest fix would be to properly report back the version of
Xfixes you actually support, document that restriction at least in the
include file, and reject the Xfixes extension requests you don't handle. As
an aside, almost every other X feature I've tried to use has worked
identically on Cygwin and Fedora, usage bugs included.

Note that there is probably a work-around for this missing function by
creating a blank cursor and using that instead of hide_cursor.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cygwin X server accepts xfixes version 5.0 but doesn't handle xcb_xfixes_hide_cursor
  2020-10-15 19:31 Cygwin X server accepts xfixes version 5.0 but doesn't handle xcb_xfixes_hide_cursor Frank Eske
@ 2020-10-25 16:20 ` Jon Turney
  0 siblings, 0 replies; 2+ messages in thread
From: Jon Turney @ 2020-10-25 16:20 UTC (permalink / raw)
  To: Frank Eske, The Cygwin Mailing List

On 15/10/2020 20:31, Frank Eske via Cygwin wrote:
> I'm building an XCB-based application that uses xcb_xfixes_hide_cursor. The
> X server reports back version 5.0 in xcb_fixes_query_version_reply and
> accepts xcb_xfixes_hide_cursor requests, but does not hide the cursor. When
> omitting the xcb_fixes_query_version operation, the xcb_xfixes_hide_cursor
> is (properly) rejected. Compiling and running the same program under
> Fedora, the cursor is hidden when running natively. When running an ssh
> remote xterm to Fedora, the hide_cursor again does nothing.
> 
> The associated X11/extensions/Xfixes.h XFixesHideCursor() works
> identically. It fails to do anything but does not report any error
> indication.
> 
> When testing this on Fedora, I also noticed that xterm hides the cursor in
> exactly the same manner I want for my application, and doesn't on Cygwin
> (where it always remains visible.) That is, typing hides the cursor and
> cursor movement shows it again. This should eliminate the need for a test
> case which, because of all the ancillary setup needed, would be quite large.
> 
> Possibly the simplest fix would be to properly report back the version of
> Xfixes you actually support, document that restriction at least in the
> include file, and reject the Xfixes extension requests you don't handle. As
> an aside, almost every other X feature I've tried to use has worked
> identically on Cygwin and Fedora, usage bugs included.

There is Windows-specific code in the X server which is supposed to 
handle cursor hiding, and it's a bug that it doesn't work.

Thanks for reporting this problem.

> Note that there is probably a work-around for this missing function by
> creating a blank cursor and using that instead of hide_cursor.

You can probably also work around this by using the XWin option 
'-swcursor' (requires '-nocompositewm').


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-25 16:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-15 19:31 Cygwin X server accepts xfixes version 5.0 but doesn't handle xcb_xfixes_hide_cursor Frank Eske
2020-10-25 16:20 ` Jon Turney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).