Subject: Re: bug#56198: Request to delete window with mouse event

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 26 Jun 2022 17:01:02 +0200

Visuwesh <[email-masked]> writes:

> Ah indeed, that would be nice.  The following patch does the job for me
> but maybe there's a cleaner way to do this?

[...]

> -    (delete-window (posn-window (event-start click)))))
> +    (when (eq (posn-window (event-end click))
> +              (posn-window (event-start click)))
> +      (delete-window (posn-window (event-start click))))))

I think it makes sense to change the behaviour here, but this doesn't
seem to do the trick for me?  I.e., <mouse-3> on the mode line, and then
moving the pointer out of the mode line, and then releasing it still
deletes the window.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no