bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#74496: 30.0.91; fullscreen frame set with F11 is shifted when ctwm r


From: martin rudalics
Subject: bug#74496: 30.0.91; fullscreen frame set with F11 is shifted when ctwm restarts
Date: Thu, 12 Dec 2024 18:18:22 +0100
User-agent: Mozilla Thunderbird

> Opening the aperture to "F11 fullscreen" for emacs and firefox, on ctwm
> restart, the F11 fullscreen state is persisted.  Emacs needs the init
> file to set t for frame-resize-pixelwise.  Loss of the prior framesize
> to the F11 fullscreen after ctwm restart is an acceptable glitch for in
> my use case as I don't leave F11 fullscreen in the virtual screen
> workspace.

If you ever do want to leave it you can use a workaround like this:

(defun f11 ()
  (interactive)
  (let ((pos (frame-position)))
    (if (and (not (frame-parameter nil 'fullscreen))
             (< (car pos) 0) (< (cdr pos) 0))
        (progn
          (set-frame-parameter nil 'fullscreen nil)
          (modify-frame-parameters
           nil '((left . 20) (top . 20) (width . 80) (height . 24))))
      (toggle-frame-fullscreen))))

(global-set-key [f11] 'f11)

> Do other window managers remember their window frame size history prior
> to their current size at time of wm restart after restart?  I could use
> the example to show the CTWM maintainers.

The CTWM maintainers will probably tell you that other window managers
do not allow restarts that keep windows alive.

martin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]