[Top][All Lists]

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

Re: We should decouple focus and frame switching

From: dancol
Subject: Re: We should decouple focus and frame switching
Date: Sun, 10 Jun 2018 20:24:24 -0700
User-agent: SquirrelMail/1.4.23 [SVN]

>> From: Daniel Colascione <address@hidden>
>> Date: Sun, 10 Jun 2018 11:07:09 -0700
>> How about this? We'll add a frame-focused-p function that returns nil,
>> t, or 'unknown, and wire up focus-in-hook and focus-out-hook to run only
>> when we actually observe a window system focus change, letting the frame
>> switch stuff run completely independently. This way, we'll be able to
>> write lisp (as I've been trying to do) that reflects the real window
>> system focus.
> Does that mean that clicking on a frame will no longer restart cursor
> blinking when blink-cursor-mode is in its default configuration?  It
> does now.

Oh, no. That'll work better than ever. Every time the focus state changes
anywhere, we'll just rescan all the frames and enable the timer if at
least one of them is a focused GUI frame, disabling otherwise. Assuming
all focus events get delivered eventually, the right thing always happens.

reply via email to

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