From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#21317: 25.0.50; frame-resize-pixelwise has no effect (GTK, no window manager) Date: Fri, 21 Aug 2015 22:34:30 +0000 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1440197960 21698 80.91.229.3 (21 Aug 2015 22:59:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Aug 2015 22:59:20 +0000 (UTC) To: 21317@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 22 00:59: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 1ZSvHA-00052Y-H8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Aug 2015 00:59:08 +0200 Original-Received: from localhost ([::1]:44737 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSvH9-0002UV-OZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Aug 2015 18:59:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSvH5-0002TG-Nk for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2015 18:59:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSvH4-0003br-NJ for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2015 18:59:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSvH4-0003bl-L8 for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2015 18:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZSvH4-0006ie-81 for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2015 18:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Aug 2015 22:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21317 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144019791425793 (code B ref -1); Fri, 21 Aug 2015 22:59:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Aug 2015 22:58:34 +0000 Original-Received: from localhost ([127.0.0.1]:34813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZSvGb-0006hw-W5 for submit@debbugs.gnu.org; Fri, 21 Aug 2015 18:58:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41830) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZSvGZ-0006hn-Aa for submit@debbugs.gnu.org; Fri, 21 Aug 2015 18:58:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSvGY-0003P9-3I for submit@debbugs.gnu.org; Fri, 21 Aug 2015 18:58:31 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSvGY-0003Oy-0v for submit@debbugs.gnu.org; Fri, 21 Aug 2015 18:58:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSutM-00017g-Fm for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2015 18:34:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSutL-00010b-CE for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2015 18:34:32 -0400 Original-Received: from mail-ig0-x22d.google.com ([2607:f8b0:4001:c05::22d]:35614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSutL-00010W-6z for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2015 18:34:31 -0400 Original-Received: by igbjg10 with SMTP id jg10so24718186igb.0 for ; Fri, 21 Aug 2015 15:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=VJfu0mFAqiMPHOL11qIGNabJWWD0IiyJ12t7zfcgEzk=; b=d/jZOfGqwOhacepRQ3zj9rHmIeqSrqB1s55wYrzVV+Rxm6WmdpoLngweszpa5d++BP Ym3lKD8GE16NpaOEON9GNnkl1XBUrbvcBTAP3GPAI0A+X2ZmeKkedoyIpFtszdDWcDkI PjzNPeOvCAEvm3kIAEttFboqPc0NdujPugVyrb7KQ/r2uSlJ1r56YhmbYdb1/AUXT9qF vcRIFo9Nvnb0RXhxYbdZCbjb0QFVn/Amo/YSdJwG1svuOv+pbCE1APqs5EExSnc1bo15 DZkYD8D8agbDL9RHz90HfRLJP/hdZBStY/PtHJ1yUPWNTpNi3H2dq+clCcLKCnAbi+po Cdzg== X-Received: by 10.50.92.67 with SMTP id ck3mr5098909igb.93.1440196470773; Fri, 21 Aug 2015 15:34:30 -0700 (PDT) Original-Received: by 10.79.78.66 with HTTP; Fri, 21 Aug 2015 15:34:30 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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: 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105683 Archived-At: When starting Emacs (GTK build) on an X server which has no window manager (such as a newly-created Xnest session), setting `frame-resize-pixelwise' to t followed by a resize operation often has no effect. In GNU Emacs 25.0.50.31 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.6) of 2015-08-21 on ... Repository revision: a9d799b5dea1efb9216dc6f985ffc9bdd25d8cba Windowing system distributor `The X.Org Foundation', version 11.0.11702000 System Description: Debian GNU/Linux unstable (sid) Configured using: `configure 'CFLAGS=-O0 -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. user-error: Beginning of history; no preceding item user-error: End of history; no default available Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 81307 5982) (symbols 48 19076 0) (miscs 40 42 86) (strings 32 13284 4355) (string-bytes 1 377456) (vectors 16 11222) (vector-slots 8 413750 4157) (floats 8 130 19) (intervals 56 179 0) (buffers 976 11) (heap 1024 33363 990)) Steps to reproduce: Xnest :3 -geometry 877x877+0+0 DISPLAY=:3 emacs -Q --eval "(progn (setq frame-resize-pixelwise t) (set-frame-parameter (selected-frame) 'fullscreen 'fullboth))" Expected result: Emacs frame fills Xnest window precisely. Actual result: Emacs frame size differs from Xnest window size. In my case, the minibuffer/echo area is cut off and there is an area to the right of the Emacs window that is not used by the Emacs frame. Analysis: There are two problems: (1) x_check_fullscreen (xterm.c) calls XResizeWindow without first calling x_wm_set_size_hint (gtkutil.c), which would propagate the `frame-resize-pixelwise' flag to have an effect on GTK/GDK (2) x_wm_set_size_hint returns without propagating the `frame-resize-pixelwise' flag when the frame's fullscreen property is 'maximized or 'fullboth. The first appears to be simple oversight, but the second is intentional to work around a KWin bug. Note that despite the name, the GTK version of `x_wm_set_size_hint' does not rely on the presence of a window manager or indeed communicate with it. Fixing the first problem is trivial, but the second problem would require knowing more about the KWin bug that is being avoided by the workaround at #14627.