GNU bug report logs - #36250
Allow Emacs to be resized arbitrarily

Previous Next

Package: emacs;

Reported by: Konstantin Kharlamov <hi-angel <at> yandex.ru>

Date: Sun, 16 Jun 2019 18:01:02 UTC

Severity: wishlist

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Konstantin Kharlamov <hi-angel <at> yandex.ru>
To: 36250 <at> debbugs.gnu.org
Subject: bug#36250: Allow Emacs to be resized arbitrarily
Date: Sun, 16 Jun 2019 20:59:52 +0300
For a long time Emacs was setting PResizeInc flag for WM_SIZE_HINTS, 
thus causing problems to users of standard-compliant window managers, 
such as not being able to open Emacs in fullscreen¹ or not being able 
to resize Emacs to fill all free space on the screen².

I investigated reasons why these variables were set in the first place, 
and found the first occurrence of `size_hints.width_inc` in `xterm.c`, 
commit `Initial revision` in 1991 year, function `x_wm_set_size_hint`. 
First occurrence in GTK related file is at `gtkutil.c`, commit `GTK 
files gtkutil.c and .h` in 2003. Both commits lack any description, and 
no comments on the resize matter provided.

This patch fixes the problem, the property "program specified resize 
increment" in `xprop` output is no longer set.

Unconstrained resize of Emacs is widely tested, e.g. I've been using 
for years Emacs on i3wm, which just ignores the property, thus resizes 
Emacs arbitrarily. Also: I don't touch in this patch 
`frame_resize_pixelwise` variable, because it's used for something 
else; in particular, setting this variable had no influence on the 
problem.

1: https://bugs.kde.org/show_bug.cgi?id=408746#c8
2: https://github.com/kwin-scripts/kwin-tiling/issues/161







This bug report was last modified 4 years and 268 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.