From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.bugs Subject: bug#19990: 24.4; Bad resizing interaction when WM ignores size hints Date: Fri, 6 Mar 2015 07:03:05 +0100 Message-ID: <9C8ADD7C-C99B-4C5E-9835-AD446CC57747@swipnet.se> References: <54F59D19.5000808@eurac.edu> <54F5F3C9.9070008@gmx.at> <54F6003E.7040900@eurac.edu> <54F752C8.7050009@gmx.at> <54F754A4.5050507@eurac.edu> <8D5FE96A-F0AE-4908-8AEF-DFDBAB504983@swipnet.se> <54F80E26.1070608@gmx.at> <54F885F7.80803@swipnet.se> <54F89D48.1000902@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1425621862 2874 80.91.229.3 (6 Mar 2015 06:04:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Mar 2015 06:04:22 +0000 (UTC) Cc: 19990@debbugs.gnu.org, Yuri D'Elia To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 06 07:04:11 2015 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 1YTlMo-0002Yj-K6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Mar 2015 07:04:10 +0100 Original-Received: from localhost ([::1]:56384 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTlMn-0007aZ-JK for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Mar 2015 01:04:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTlMj-0007Xy-Vt for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2015 01:04:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTlMg-0005pQ-OM for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2015 01:04:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTlMg-0005pM-L4 for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2015 01:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YTlMg-00085W-4l for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2015 01:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Jan D." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Mar 2015 06:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19990 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19990-submit@debbugs.gnu.org id=B19990.142562179631030 (code B ref 19990); Fri, 06 Mar 2015 06:04:02 +0000 Original-Received: (at 19990) by debbugs.gnu.org; 6 Mar 2015 06:03:16 +0000 Original-Received: from localhost ([127.0.0.1]:36708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTlLw-00084Q-87 for submit@debbugs.gnu.org; Fri, 06 Mar 2015 01:03:16 -0500 Original-Received: from mailfe04.swip.net ([212.247.154.97]:36012 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTlLt-000849-Jb for 19990@debbugs.gnu.org; Fri, 06 Mar 2015 01:03:14 -0500 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 576503150; Fri, 06 Mar 2015 07:03:05 +0100 In-Reply-To: <54F89D48.1000902@gmx.at> X-Mailer: Apple Mail (2.2070.6) 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:100126 Archived-At: Hi. > 5 mar 2015 kl. 19:15 skrev martin rudalics : >=20 > > What do you mean by intercept? Intercept from who? >=20 > I have no idea how a resize request issued by the window manager is > handled. I initially thought that a configure event is issued by the > window manager and passed on to us via Gtk. Apparently, this is not = the > case and the window manager only informs Gtk about the resize request > and Gtk takes the appropriate measures. As far as focus requests are > concerned I don't understand why Gtk doesn't treat them like resize > requests. The window manager can resize the window, for example when you drag on = its corners, or when you maximize it. Or it can intercept Emacs resize request and modify it, so it is = consistent with size hints. In both cases a ConfigureNotify is sent. Gtk+ does receive it. The = problem is that Gtk+ then tries to apply size hints also. Focus events does not contain any information about width/height and = can't be taken as a resize request. That would be kind of perverse, = focus has nothing to do with resize. >=20 >=20 > So if Emacs starts with a maximized frame we don't set any hints? >=20 Yes. > Apparently no such measure is needed for fullheight/-width frames. The bug report that lead to the change mentioned no such problems. >=20 > > I.e. make sure the window manager and Gtk+ have the same hints, but > > don't change them when fullscreen because Gtk+ and KWin implements > > enforcements of hints differently. Gtk+ and the window manager = still > > has our last non-fullscreen hints. >=20 > With the according base height and width. I always thought these = should > reflect our current sizes. Does the fullscreen status suspend that > temporarily? The window manager is what does the fullscreen happen, so it is free to = ignore any hints, i.e. hints should not matter, fullscreen takes = precedence. But in principle hints during fullscreen may not reflect = the "true" state of affairs. Jan D.