From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.bugs Subject: bug#36250: Allow Emacs to be resized arbitrarily Date: Sun, 16 Jun 2019 20:59:52 +0300 Message-ID: <1560707992.19774.0@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="95739"; mail-complaints-to="usenet@blaine.gmane.org" To: 36250@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 16 20:02:09 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcZTi-000OiN-Bt for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2019 20:02:06 +0200 Original-Received: from localhost ([::1]:41932 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcZTg-0006GF-T1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2019 14:02:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51681) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcZSh-0006E9-QM for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 14:01:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcZSg-0003ZZ-OO for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 14:01:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56075) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcZSg-0003ZB-LR for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 14:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hcZSg-0006Hq-GH for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 14:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jun 2019 18:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36250 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156070801324093 (code B ref -1); Sun, 16 Jun 2019 18:01:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Jun 2019 18:00:13 +0000 Original-Received: from localhost ([127.0.0.1]:41386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcZRt-0006GV-7J for submit@debbugs.gnu.org; Sun, 16 Jun 2019 14:00:13 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:58312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcZRp-0006GL-Fj for submit@debbugs.gnu.org; Sun, 16 Jun 2019 14:00:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51340) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcZRm-0005wz-OT for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 14:00:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcZRk-0002aY-MU for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 14:00:06 -0400 Original-Received: from forward104p.mail.yandex.net ([2a02:6b8:0:1472:2741:0:8b7:107]:39486) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hcZRg-0002RC-JQ for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 14:00:01 -0400 Original-Received: from mxback8g.mail.yandex.net (mxback8g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:169]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 21BF44B006EC for ; Sun, 16 Jun 2019 20:59:54 +0300 (MSK) Original-Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback8g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id fqouuCoRtH-xrGicsdw; Sun, 16 Jun 2019 20:59:54 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1560707994; bh=j4OsPTraM1Mr/QiTrkct/mVBt0YwbJgckbn3l4ki5YQ=; h=To:Subject:From:Date:Message-Id; b=rMRQ6YensMSkb/t4oh2mytaaF/tZX9PZMWTA4LLVw3t7I6kCf6Nxmv2iLKJdxop9w YPEeLUKxdJnP52/elt8WfjmLv/My1SDvBZbNmyVVdXO72+V+Wuo+IK+naP0p3b8Ib8 cG0e8J4Kt8disrRjC0Xv57l6CneSBq7papMXUhhA= Authentication-Results: mxback8g.mail.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id TEhq1ud3ZU-xrumdLtG; Sun, 16 Jun 2019 20:59:53 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) X-Mailer: geary/3.33.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 209.51.188.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:160676 Archived-At: For a long time Emacs was setting PResizeInc flag for WM_SIZE_HINTS,=20 thus causing problems to users of standard-compliant window managers,=20 such as not being able to open Emacs in fullscreen=B9 or not being able=20 to resize Emacs to fill all free space on the screen=B2. I investigated reasons why these variables were set in the first place,=20 and found the first occurrence of `size_hints.width_inc` in `xterm.c`,=20 commit `Initial revision` in 1991 year, function `x_wm_set_size_hint`.=20 First occurrence in GTK related file is at `gtkutil.c`, commit `GTK=20 files gtkutil.c and .h` in 2003. Both commits lack any description, and=20 no comments on the resize matter provided. This patch fixes the problem, the property "program specified resize=20 increment" in `xprop` output is no longer set. Unconstrained resize of Emacs is widely tested, e.g. I've been using=20 for years Emacs on i3wm, which just ignores the property, thus resizes=20 Emacs arbitrarily. Also: I don't touch in this patch=20 `frame_resize_pixelwise` variable, because it's used for something=20 else; in particular, setting this variable had no influence on the=20 problem. 1: https://bugs.kde.org/show_bug.cgi?id=3D408746#c8 2: https://github.com/kwin-scripts/kwin-tiling/issues/161 =