X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 953F5385701F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1602790329;
	bh=Tv8myfMDbT3Wklhts+292mgBlxd2gAYXt7N+LBu+kFY=;
	h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:From;
	b=mjjOvwMoggFv995vqXjaPWQpz43H9Iv1/bjOhcHMYqmt6bC+BhWU2z58cSv28NM6X
	 jjSKckXsDUWSS6yB/EKBOhZwaJGgz+Vc3UWnxLEWc2txDw2OGgsjmcGKoNJ7Srn3be
	 57orbu94qgetLc/E2S7dmAeyEfKFLx2+NqdEUs9g=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 60D883857807
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=NN+hsTdMtGQQN4Tk+ZKtdwMJjePQTrrYUlQMbqCfVTI=;
 b=bL3LQcWNiEbUCANHOWDWvP6Nw8j6u8rIasw5Q/bMUSSjNJD+DTZJXEvBAPYiSTci/V
 Boo1QXW0F8XevU9pr5f/MqedbZDCPYyXFKhaemdCO5TbnvS8pNWHh0RE9ZhwNLah3sj5
 uznXojJwJvIQ73tTKNS28N6ybGIsp2hku7js6ZeouI7PzajQeqoxEIas6djjtSFc5Mec
 U6R91gvRSjy60jV2PiWfWwjnoiyud9DHICtASR9HgCIiCb5V8u1KdzFhi4XwOybwW1Z8
 qBovEXpraTnJDM+CJcYo8rL2Us9JsowcHDSjy+Jd0+yBbFMdKWPvEfj42RbQiKwPwRzt
 M5IQ==
X-Gm-Message-State: AOAM530d7rJBqHCsQqAlN/bVZjP5IKxpOTvPepBUJ6YaMoDLxIVDVOJj
 ZkU5Wl5WfrNGK1wpAwODciqGLdswXHLY7vPLzU0XkUg1Nj23XQ==
X-Google-Smtp-Source: ABdhPJzo4nG6QXVv4Uso3qlyJ8B/UMfyTmscaEIkuUTALpRmHNst19taehSNPRqa2OTJiRTOXf9LD2CHOalL0/Ty/dU=
X-Received: by 2002:a92:c7c1:: with SMTP id g1mr104444ilk.101.1602790325459;
 Thu, 15 Oct 2020 12:32:05 -0700 (PDT)
MIME-Version: 1.0
Date: Thu, 15 Oct 2020 15:31:55 -0400
Message-ID: <CAETRzVJAZ1706umKnnLLJuCg5kDRRFaE98fO87UFqRksUSQKDg@mail.gmail.com>
Subject: Cygwin X server accepts xfixes version 5.0 but doesn't handle
 xcb_xfixes_hide_cursor
To: cygwin@cygwin.com
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
 RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP,
 T_KAM_HTML_FONT_INVALID autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Frank Eske via Cygwin <cygwin@cygwin.com>
Reply-To: Frank Eske <fne.bugzilla@gmail.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

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.
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
