From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.bugs Subject: bug#25408: Remove Decorations Around Emacs Frame (Windows OS) Date: Wed, 11 Jan 2017 10:17:59 +0100 Message-ID: References: <587499E6.9030205@gmx.at> <838tqietdj.fsf@gnu.org> <587522DB.2050105@gmx.at> <831swaepnc.fsf@gnu.org> <5875EF34.20507@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c13146cb90b7e0545ce133f X-Trace: blaine.gmane.org 1484126371 26729 195.159.176.226 (11 Jan 2017 09:19:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 11 Jan 2017 09:19:31 +0000 (UTC) Cc: 25408@debbugs.gnu.org, =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 11 10:19:24 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRF3r-0005EM-WC for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Jan 2017 10:19:16 +0100 Original-Received: from localhost ([::1]:52490 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRF3t-0000Zz-93 for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Jan 2017 04:19:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRF3k-0000ZN-5X for bug-gnu-emacs@gnu.org; Wed, 11 Jan 2017 04:19:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRF3e-0007Oo-Fi for bug-gnu-emacs@gnu.org; Wed, 11 Jan 2017 04:19:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33973) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cRF3e-0007Ok-CB for bug-gnu-emacs@gnu.org; Wed, 11 Jan 2017 04:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cRF3e-0000VJ-4D for bug-gnu-emacs@gnu.org; Wed, 11 Jan 2017 04:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Jan 2017 09:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25408 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25408-submit@debbugs.gnu.org id=B25408.14841262861874 (code B ref 25408); Wed, 11 Jan 2017 09:19:02 +0000 Original-Received: (at 25408) by debbugs.gnu.org; 11 Jan 2017 09:18:06 +0000 Original-Received: from localhost ([127.0.0.1]:49372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRF2k-0000UA-Lv for submit@debbugs.gnu.org; Wed, 11 Jan 2017 04:18:06 -0500 Original-Received: from mail-wm0-f44.google.com ([74.125.82.44]:35525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRF2j-0000Th-NI for 25408@debbugs.gnu.org; Wed, 11 Jan 2017 04:18:06 -0500 Original-Received: by mail-wm0-f44.google.com with SMTP id r126so6791024wmr.0 for <25408@debbugs.gnu.org>; Wed, 11 Jan 2017 01:18:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=gaDWFP3pFSPok0JRbwQ5jTzz4Uhpuc1ylZnwA8flW+o=; b=DHYRo8BcrXTGmFS8rfSxwhkTotCADJuT7yN8cc42SjqdAtsP3BpJuaK5PkGts0jjQ5 L2Fsb9f11GdJNyd1+qLEL4XuxJ2yOKMgjZhC5vi5GgnC78bclK5oiQNod8SoKCInsJ8k lHYBMlk5OiAhnGXTahP0idyLYZ58ddHuPHyG3Ec9tIYd9kMvu13u9kh08LXnQyxFScc9 937HnnsNWTpoxUywNMAaV/9OTdjY3TQSwBtvMYzeUC7kcNJTXpgDl/Ke536Y7eDRr4xV hxM2lDXKBPh94R78NG0vkaYEd75nmAplNcHxh+CABJjWtgkgHQT2ra9Lbcq7xQUXzb+7 0P6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=gaDWFP3pFSPok0JRbwQ5jTzz4Uhpuc1ylZnwA8flW+o=; b=pYYTMbJhxDyP7qyCGro/Ll+PSQOMgdxdKnM3OdFbZhUWLWIsvExjzp8Hg4vsm0h/7O 1br17SI5mT7n7GXKbCGgXBUTORnkEOS6Nlt3UBVwZrLEFv33F8Ezet7hhgvOz+frtF4D L55Hvf0uP7LX6nvnQLmDogmRQVC6HI0Bn7Ehuwcdub3QZKDs0jPQANK8kyhLTC29pCxw 5hJXoqSwMC+DFrWCSuxLbQgBUxx2S0lGjPnoMz8cFqQXJannmyty9+B6aW2Bqq9SAUjZ HawI3YAYYI4iaag2nrem4YiApTL+BFzsCiClk4zcmeMcC/yr3/LXFe/J2mlIiKjzhvzN hGDQ== X-Gm-Message-State: AIkVDXI0vGQYjkfE9fGHQ/vQ3YjQHEJLJP3/YwwI39mR62botA/DD9m/ioAxVjPZpjq60ZFrd5NscFRvkwXnhg== X-Received: by 10.28.203.6 with SMTP id b6mr2242606wmg.2.1484126280024; Wed, 11 Jan 2017 01:18:00 -0800 (PST) Original-Received: by 10.194.169.98 with HTTP; Wed, 11 Jan 2017 01:17:59 -0800 (PST) In-Reply-To: <5875EF34.20507@gmx.at> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:127992 Archived-At: --94eb2c13146cb90b7e0545ce133f Content-Type: text/plain; charset=UTF-8 I took screenshot of just one version, it was problem with both on/off, at least on my machine. Just posting wm_size message after the change in your function solves issues in both cases for me. 2017-01-11 9:39 GMT+01:00 martin rudalics : > > There is a slightly cosmetic issue with above function. When one switches > > back on decorations, > > the frame will not resize properly and minibuffer will be not visible. > It's > > there but just > > covered by frame. Just resizing emacs framefixes it. > > > > Adding call to PostMessage(hwnd, WM_SIZE,0,0) in Martins function fixes > it. > > This is not necessary here. And it would be strange since the idea is > that the outer frame size remains unchanged. Hence, any problem would > manifest itself already when you remove the borders by leaving parts of > the display area reserved for the frame not redrawn. > > The image you posted in the message you sent just now seems to confirm > that. > > But I'm testing this on Windows XP and have not yet pulled the recent > multi-thread Emacs changes. > > martin > --94eb2c13146cb90b7e0545ce133f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I took screenshot of just one version, it was problem= with both on/off, at least on my machine.

Just posting wm_siz= e message after the change in your function solves issues in both cases for= me.

201= 7-01-11 9:39 GMT+01:00 martin rudalics <rudalics@gmx.at>:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">> There is a slightly cos= metic issue with above function. When one switches
> back on decorations,
> the frame will not resize properly and minibuffer will be not visible.= It's
> there but just
> covered by frame. Just resizing emacs framefixes it.
>
> Adding call to PostMessage(hwnd, WM_SIZE,0,0) in Martins function fixe= s it.

This is not necessary here.=C2=A0 And it would be strange since the idea is=
that the outer frame size remains unchanged.=C2=A0 Hence, any problem would=
manifest itself already when you remove the borders by leaving parts of
the display area reserved for the frame not redrawn.

The image you posted in the message you sent just now seems to confirm
that.

But I'm testing this on Windows XP and have not yet pulled the recent multi-thread Emacs changes.<= br>
martin

--94eb2c13146cb90b7e0545ce133f--