Re: [dwm] Maximized emacs bug

From: Anselm R. Garbe <>
Date: Mon, 14 Aug 2006 15:21:31 +0200

On Sun, Aug 13, 2006 at 11:32:26AM -0400, Edwin Stearns wrote:
> I like your project very much, but I have found an annoying bug with
> using emacs. To see the bug, follow this recipe:
> Open a xterm.
> Call emacs without loading the configuration file like this:
> # emacs -q
> Modl-M to maximize emacs
> In emacs:
> M-x menu-bar-mode
> Add watch emacs go back to tiled mode.
> This bug is worse for me in that there is something in my .emacs
> configuration file that causes emacs to leave maximized mode on every
> key press. The above recipe doesn't cause this problem but I hope
> someone will be able to debug the problem from it. My work around
> currently is to have emacs maximized in it own node.

gvim and emacs behave that way, because they are broken (they
send configure request after they have been resized, because of
increment handling, such an configure request lets dwm restore
the old size).

There are two solutions:
1. use emacs/gvim in floating mode only (at least maximize them
in floating mode only).
2. Change the line resize(sel, arrange == dofloat, TopLeft); in
client.c:togglemax() as follows:
resize(sel, True, TopLeft);

Note that 2. is no solution for the official dwm version, but
might be a solution for you.


 Anselm R. Garbe  ><><  ><><  GPG key: 0D73F361
Received on Mon Aug 14 2006 - 15:21:31 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:30:08 UTC