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#19990: 24.4; Bad resizing interaction when WM ignores size hints Date: Wed, 04 Mar 2015 19:45:28 +0100 Message-ID: <54F752C8.7050009@gmx.at> References: <54F59D19.5000808@eurac.edu> <54F5F3C9.9070008@gmx.at> <54F6003E.7040900@eurac.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1425494785 9749 80.91.229.3 (4 Mar 2015 18:46:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Mar 2015 18:46:25 +0000 (UTC) To: Yuri D'Elia , 19990@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 04 19:46:14 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 1YTEJB-00078z-Ro for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Mar 2015 19:46:14 +0100 Original-Received: from localhost ([::1]:45945 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTEJB-0002Hl-13 for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Mar 2015 13:46:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTEJ6-0002He-Mu for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2015 13:46:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTEJ1-0000NG-7z for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2015 13:46:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTEJ1-0000NB-5R for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2015 13:46:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YTEJ0-0003RS-VC for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2015 13:46:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Mar 2015 18:46: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.142549474913186 (code B ref 19990); Wed, 04 Mar 2015 18:46:02 +0000 Original-Received: (at 19990) by debbugs.gnu.org; 4 Mar 2015 18:45:49 +0000 Original-Received: from localhost ([127.0.0.1]:35246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTEIm-0003Qc-Jy for submit@debbugs.gnu.org; Wed, 04 Mar 2015 13:45:48 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:56784) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTEIk-0003QO-OU for 19990@debbugs.gnu.org; Wed, 04 Mar 2015 13:45:47 -0500 Original-Received: from [88.117.118.171] ([88.117.118.171]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Ldbqw-1XkqsE2TDO-00imai; Wed, 04 Mar 2015 19:45:37 +0100 In-Reply-To: <54F6003E.7040900@eurac.edu> X-Provags-ID: V03:K0:kU31WA2nV7luak2Hw4lw3OGaA9yO/Vxf3OUJ6GNVVsWu4B7jL3Y cMjsjTsymtehm1+NDlIOCCdbyYeHWVtoWGHJ6eDXNk4V46xu38Iu/cZPpim/Rsi0vXkECz/ jHlk6IB5qSx3CJlnTxKw4eMbXs7dUuwsiVmtVOtNtnKY0uFeVnBbdNFdR6u8lqUvyxxA/68 XLPYjI4AutBvdZhNjzjqg== X-UI-Out-Filterresults: notjunk:1; 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:100064 Archived-At: >> > I'm using a tiling window manager with the GTK+ port of emacs 24. I >> > force the emacs frame to take the height of the entire screen. >> >> How do you do that? > > Using awesomewm you can set "size_hints_honor = false". > With spectrwm there's no setting (the size hints are not honored if the > window is tiled, but are if the window is floating). > Xmonad is pretty similar to awesome in this sense (defaults to honor, > but not honoring is common). I still don't understand how you "force the emacs frame to take the height of the entire screen". Do you set the fullscreen frame parameter to `fullheight'? >> > I realize this is a very minor issue and ignoring size hints is bad(tm), >> > but since emacs properly aligns the minibuffer with >> > toggle-frame-fullscreen in order to fit the screen it shouldn't be hard >> > to fix. >> >> What happens when you set `frame-resize-pixelwise' to t? > > It does work, but I was wondering if this could be fixed irregardless, > since depending on the setting the hints might be honored or not. Do you mean you want hints honored when the frame is floating and not honored when the frame is tiled? > When I put some debugging code in gtkutil.c:xg_frame_resized, it looks > like two resize events are received when the frame is mapped: one with > the real window size, and a second event with the size rounded-down to > the text size. And if you set `frame-resize-pixelwise' to t you get only one resize event? > Again, when the frame is focused, a third resize event is > received with the initial size, which causes the frame to render > correctly. This feels odd. What is the "initial size"? Who sets it? > GTK might be trying to resize the window after the first event. In > xg_frame_resized itself it might be necessary to disable the size hints > to prevent that (as done in xg_frame_set_char_size). But I don't have > enough experience with GTK and/or low-level frame handling. I was hoping > for somebody else to chime in. In x_wm_set_size_hint we disable size hints for fullscreen and maximized frames. Is it that what you mean with "as done in xg_frame_set_char_size"? martin