From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#7296: display-pixel-height not enough Date: Fri, 29 Oct 2010 10:42:36 +0200 Message-ID: References: <83hbg66vt4.fsf@gnu.org> <83d3qt77lj.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1288343605 939 80.91.229.12 (29 Oct 2010 09:13:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Oct 2010 09:13:25 +0000 (UTC) Cc: 7296@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 29 11:13:23 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PBl1X-00072b-Bm for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Oct 2010 11:13:23 +0200 Original-Received: from localhost ([127.0.0.1]:34765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBl1S-0001Sj-09 for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Oct 2010 05:13:18 -0400 Original-Received: from [140.186.70.92] (port=57984 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBl1J-0001Se-7Y for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2010 05:13:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBl1H-0008Hx-Tw for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2010 05:13:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBl1H-0008Hs-Pi for bug-gnu-emacs@gnu.org; Fri, 29 Oct 2010 05:13:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PBkUI-0000rz-40; Fri, 29 Oct 2010 04:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Oct 2010 08:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7296 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7296-submit@debbugs.gnu.org id=B7296.12883415283330 (code B ref 7296); Fri, 29 Oct 2010 08:39:02 +0000 Original-Received: (at 7296) by debbugs.gnu.org; 29 Oct 2010 08:38:48 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PBkU3-0000rf-9N for submit@debbugs.gnu.org; Fri, 29 Oct 2010 04:38:48 -0400 Original-Received: from mail-qw0-f44.google.com ([209.85.216.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PBkU1-0000rX-Ln for 7296@debbugs.gnu.org; Fri, 29 Oct 2010 04:38:46 -0400 Original-Received: by qwb7 with SMTP id 7so2886960qwb.3 for <7296@debbugs.gnu.org>; Fri, 29 Oct 2010 01:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=+kLGTc3fD2zNbkkGHgX+w21Hz7xVt0BzTwKNlOQxa2A=; b=HYp4PpnUTHzgsaH1KXAE3qEzxCzQ3wVfns5mUi1VCd0D0NS3ptCKcAiIY1X3Jxygwx 7gewTPz3wZq50BUhphICVHHYY5aWFxX/l+QryOmYEimsqtgQZbN3WCFTmFAVun5khQ3x LXXYGvMsxPA/OePJfyCjUBEsUTjy9LKa9+Zys= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=p/MZIEmbl58/cyzFvsrLYEJNTbtsfiTCtUfl2Q5spwBEQ3XkbDaxXe+E/On/VqI7KH MI1gJ6NPjs2XWQb1n1fvqBuUSfjFPOgcSSw501lCEkIUvY4oniCFc6QBUlvDNcWWSWVx Cg885uew+rnI6IA5COA/IYy1wLnvyYaG9mCzw= Original-Received: by 10.229.189.211 with SMTP id df19mr2357134qcb.146.1288341776678; Fri, 29 Oct 2010 01:42:56 -0700 (PDT) Original-Received: by 10.229.224.199 with HTTP; Fri, 29 Oct 2010 01:42:36 -0700 (PDT) In-Reply-To: <83d3qt77lj.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 29 Oct 2010 04:39:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41217 Archived-At: On Fri, Oct 29, 2010 at 9:59 AM, Eli Zaretskii wrote: >> From: Lennart Borgman >> Date: Thu, 28 Oct 2010 22:39:35 +0200 >> Cc: 7296@debbugs.gnu.org >> >> > Wouldn't it make more sense for display-pixel-height/width to return >> > the height available for display? >> >> Probably. But there are perhaps also situation when you actually want >> to get the dimension of the whole display. Perhaps not at the moment, >> but with enhanced frame handling there could be. > > Patches are welcome to implement that. =C2=A0Or at least if someone could > explain how to find the dimensions of the unusable part, then someone > else could write the code with minimal effort. You can get the working area of the display by either calling SystemParametersInfo with SPI_GETWORKAREA (for default monitor) or GetMonitorInfo. See http://msdn.microsoft.com/en-us/library/ms724947(v=3DVS.85).aspx http://msdn.microsoft.com/en-us/library/dd144901(v=3DVS.85).aspx The functions to change are x_display_pixel_height (and dito width) in w32t= erm.c