From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: Cursor in non-selected windows is 1 pixel too small Date: Mon, 06 Mar 2006 10:48:20 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <44081767.4010004@iue.tuwien.ac.at> <44096641.8080505@iue.tuwien.ac.at> <44096CE7.9050202@iue.tuwien.ac.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1141609743 22304 80.91.229.2 (6 Mar 2006 01:49:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2006 01:49:03 +0000 (UTC) Cc: gritsch@iue.tuwien.ac.at, emacs-devel@gnu.org, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 06 02:48:54 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FG4q3-0003PW-Lz for ged-emacs-devel@m.gmane.org; Mon, 06 Mar 2006 02:48:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FG4qB-00080U-Qe for ged-emacs-devel@m.gmane.org; Sun, 05 Mar 2006 20:48:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FG4pz-0007DV-H6 for emacs-devel@gnu.org; Sun, 05 Mar 2006 20:48:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FG4pw-0006kg-0W for emacs-devel@gnu.org; Sun, 05 Mar 2006 20:48:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FG4pv-0006kL-Ti for emacs-devel@gnu.org; Sun, 05 Mar 2006 20:48:35 -0500 Original-Received: from [133.82.132.2] (helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FG4s0-0003J4-Qw; Sun, 05 Mar 2006 20:50:45 -0500 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id E7A3B2CCB; Mon, 6 Mar 2006 10:48:20 +0900 (JST) Original-To: Eli Zaretskii In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/22.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:51268 Archived-At: >>>>> On Sun, 05 Mar 2006 21:50:35 +0200, Eli Zaretskii said: > I don't have an easy access to an X Windows platform for a moment. > Can someone who has please verify positively that the hollow cursor > in non-selected windows there is _exactly_ the same size in pixels > as the solid block cursor in the selected window? They have exactly the same size with respect to the outer edges as far as I tested on XFree86 4.3.0 and 4.4.0. > I looked at the man pages of XDrawRectangle, and it sounds like it > needs the same arguments as the MS-Windows FrameRect, so I wonder > whether we simply missed this on all platforms. I think it is not unnatural that there are some differences about box drawing among platforms/APIs because: 1) Each line that constitutes a box has non-zero (in this case 1) width. There are some possibilities about including or excluding this line-width in the specified rectangle size especially when the line-width is odd. 2) Some platforms (e.g., W32) define that a pixel is located on a crosspoint of coordinate lines, but others (e.g., Mac) define that it is located between coordinate lines. I'm not sure how X11 defines that. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp