From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#16340: 24.3.50; Maximize to the left/right side of the screen (on Windows 7 & 8) Date: Tue, 07 Jan 2014 11:18:55 +0100 Message-ID: <52CBD48F.20809@gmx.at> References: <52C935EB.9030109@gmx.at> <52CB0AF7.8010304@gmx.at> <52CB2822.1070503@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1389090020 14874 80.91.229.3 (7 Jan 2014 10:20:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Jan 2014 10:20:20 +0000 (UTC) Cc: 16340@debbugs.gnu.org To: Dani Moncayo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 07 11:20:24 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W0Tlm-0002tl-96 for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jan 2014 11:20:22 +0100 Original-Received: from localhost ([::1]:39664 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0Tll-0001XF-7c for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jan 2014 05:20:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0Tla-0001X0-DH for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2014 05:20:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0TlT-0004ah-2U for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2014 05:20:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0TlT-0004aG-04 for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2014 05:20:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W0TlS-000484-Di for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2014 05:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Jan 2014 10:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16340 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16340-submit@debbugs.gnu.org id=B16340.138908994815734 (code B ref 16340); Tue, 07 Jan 2014 10:20:02 +0000 Original-Received: (at 16340) by debbugs.gnu.org; 7 Jan 2014 10:19:08 +0000 Original-Received: from localhost ([127.0.0.1]:40174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W0TkZ-00045i-KS for submit@debbugs.gnu.org; Tue, 07 Jan 2014 05:19:07 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:62580) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W0TkX-00045N-B4 for 16340@debbugs.gnu.org; Tue, 07 Jan 2014 05:19:06 -0500 Original-Received: from [62.47.42.170] ([62.47.42.170]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0M8eAd-1VD2K30P5v-00wEtr for <16340@debbugs.gnu.org>; Tue, 07 Jan 2014 11:19:04 +0100 In-Reply-To: X-Provags-ID: V03:K0:KGxxzYmu7wanYsffcOOkrK0DjWu+k6eN5Jm5PImmojz+O3bCgMy IZXoPauo1rTPvj67iHjnG1QVk0MzP3CbufmS6iTtCFwzDJLLV6OkcsMUYc7+hwx24X8kb3g +6J/BDqAqYTkGQPZh1G84T1oMRXAskEwMrdI8aHUjCfG20cT++3KR94gyzaII14hp98QLc1 uJRe1cy7/OeYXmFfgvrgg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:83094 Archived-At: > But with 'frame-resize-pixelwise' set to 'nil', a maximized Emacs > frame takes up the whole "available" screen (except the taskbar), > without letting any gaps anywhere. By accident only, I suppose. Some of my Debian builds seem to resist fully maximizing the frame unless `frame-resize-pixelwise' is set. And bug#16379 seems to confirm such behavior for Windows as well. > That's why I expected "maximize to > left/right" to also take the whole left/right half of the available > screen (without gaps). It's the call GetClientRect (msg.msg.hwnd, &rect); on line 4718 of w32term.c that counts here. Whatever Windows asks us is what Emacs processes here. And IIUC (from my experience and what you told me) Windows sends us non-size-hint-truncated coordinates for a full maximization request and size-hint-truncated coordinates for a left/right maximization request. > But I think that the key difference, which I didn't understand until > now, may be that "maximize to left/right" (unlike the standard > "maximize") aren't "states" of a window, i.e. the OS simply tries to > resize and relocate the window to occupy the corresponding half of the > screen. I believe that what we see here is an internal hack of Windows. That is, internally, the Aero (or what it is called) part of Windows maintains the left/right maximized state separate. You should be able to verify this by increasing/removing the taskbar or whatever you have near the Emacs frame. If the Emacs frame adapts to the change, we know that Aero/Windows tracks its state. In any case it seems that Windows does not communicate that state to the application, probably so because the API doesn't provide the corresponding feature. martin