From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#36250: [PATCH] Allow Emacs to be resized arbitrarily Date: Sun, 16 Jun 2019 21:24:30 +0300 Message-ID: <837e9lv15t.fsf@gnu.org> References: <1560707992.19774.0@yandex.ru> <20190616180122.20341-1-Hi-Angel@yandex.ru> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="193838"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36250@debbugs.gnu.org To: Konstantin Kharlamov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 16 20:25: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 1hcZq0-000oGD-TK for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2019 20:25:09 +0200 Original-Received: from localhost ([::1]:42038 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcZpz-0004iE-TW for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2019 14:25:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55824) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcZpv-0004i8-1J for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 14:25:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcZpu-00050M-5K for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 14:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56098) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcZpu-00050I-1s for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 14:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hcZpt-0006up-SO for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2019 14:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jun 2019 18:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36250 X-GNU-PR-Package: emacs Original-Received: via spool by 36250-submit@debbugs.gnu.org id=B36250.156070947126531 (code B ref 36250); Sun, 16 Jun 2019 18:25:01 +0000 Original-Received: (at 36250) by debbugs.gnu.org; 16 Jun 2019 18:24:31 +0000 Original-Received: from localhost ([127.0.0.1]:41409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcZpO-0006tr-RM for submit@debbugs.gnu.org; Sun, 16 Jun 2019 14:24:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46959) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcZpN-0006td-6D for 36250@debbugs.gnu.org; Sun, 16 Jun 2019 14:24:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hcZpH-0004ZO-Og; Sun, 16 Jun 2019 14:24:23 -0400 Original-Received: from [176.228.60.248] (port=1408 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hcZpG-0001YZ-00; Sun, 16 Jun 2019 14:24:23 -0400 In-reply-to: <20190616180122.20341-1-Hi-Angel@yandex.ru> (message from Konstantin Kharlamov on Sun, 16 Jun 2019 21:01:22 +0300) 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:160680 Archived-At: > From: Konstantin Kharlamov > Date: Sun, 16 Jun 2019 21:01:22 +0300 > > This constraint disallows standard compliant window managers to make > Emacs fullscreen on certain screen resolutions (ones that are not > multiple of width_inc and height_inc), or to expand Emacs to fill free > space on the screen (on certain sizes too). > > It doesn't seem to do anything useful otherwise; besides some WMs > (like i3wm) just ignore this property anyway. > > * src/xterm.c (x_wm_set_size_hint): don't set width_inc, height_inc, and > GDK_HINT_RESIZE_INC. > * src/gtkutil.c (x_wm_set_size_hint): don't set width_inc, height_inc, and > PResizeInc. > * src/emacsgtkfixed.c (XSetWMSizeHints): don't set width_inc and height_inc. Thanks, but after so many years of doing this stuff the way we do, and without any experts in this domain on board, I think we need to leave behind a "fire escape" -- a variable that users could set from Lisp to get back the old behavior. There are too many window managers out there, and we cannot be sure none of them need the old code. Also, this change (and the variable to be added) should be called out in NEWS.