emacs-devel
[Top][All Lists]
Advanced

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

Re: HowTo: Detect when a frame's size changes


From: martin rudalics
Subject: Re: HowTo: Detect when a frame's size changes
Date: Wed, 05 Apr 2017 19:26:55 +0200

> Thanks! will try that

Hmmm... rather not.  You will still get false positives when the
minibuffer window is resized.  For the moment stick to my earlier
proposal: When you run your ‘window-size-change-functions’ function
remember the old values of ‘frame-pixel-width’ and ‘frame-pixel-height’
(maybe in a frame parameter) and the next time you run it compare them
with the current values.

I will fix that soon probably by providing a ‘frame-size-changed-p’
function that you can use during ‘window-size-change-functions’.
Providing a separate ‘frame-size-change-functions’ hook would be also
possible but the interaction of these could be tricky.

martin




reply via email to

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