[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 05705454d5: Don't transfer window attributes trying to find t
From: |
Po Lu |
Subject: |
Re: master 05705454d5: Don't transfer window attributes trying to find the XM drag window |
Date: |
Mon, 19 Sep 2022 16:00:05 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) |
martin rudalics <rudalics@gmx.at> writes:
> You mean something like
>
> diff --git a/lisp/frame.el b/lisp/frame.el
> index 56a982562d..c7181d9162 100644
> --- a/lisp/frame.el
> +++ b/lisp/frame.el
> @@ -239,7 +239,8 @@ handle-move-frame
> This function runs the abnormal hook `move-frame-functions'."
> (interactive "e")
> (let ((frame (posn-window (event-start event))))
> - (run-hook-with-args 'move-frame-functions frame)))
> + (when (frame-live-p frame)
> + (run-hook-with-args 'move-frame-functions frame))))
>
> ;;;; Arrangement of frames at startup
>
> and you're certainly right.
>
> martin
Right, but maybe deeper in keyboard.c, before `handle-move-frame' is
called. But then, other event types might also be involved, so I don't
quite know how deeply rooted the problem is.