GNU bug report logs - #3233
23.0.93; [NS] Regression in x-display-pixel-width

Previous Next

Packages: ns, emacs;

Reported by: Ian Eure <ian <at> digg.com>

Date: Wed, 6 May 2009 18:55:04 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: David Reitter <reitter <at> cmu.edu>
To: 3233 <at> debbugs.gnu.org
Subject: bug#3233: 23.0.93; [NS] Regression in x-display-pixel-width
Date: Fri, 22 May 2009 00:21:51 -0400
This gives me the width of the current display, not the total multi- 
monitor width:

(x-display-pixel-width
 (get-device-terminal (frame-parameter (selected-frame) 'display)))

same with the more elegant version that Stefan pointed out:

(x-display-pixel-width (selected-frame))

I think that this is buggy (on NS), because the terminal is the same.
ns_get_screen() indeed uses dpyinfo->x_focus_frame and ignores the  
screen argument for purposes of calculating the width.  I don't really  
see how the pre-2009-05-06 code would have achieved anything more  
useful. 




This bug report was last modified 15 years and 134 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.