wl_tablet specification draft

Bill Spitzak spitzak at gmail.com
Tue Jul 1 15:55:44 PDT 2014



On 07/01/2014 12:35 PM, Jasper St. Pierre wrote:
> "A blink in the highlighting"?

Yes. Say the client wants to highlight the button being pressed and it 
has popped up a menu, If the mouse is moved from the button to the menu, 
the client wants to keep the button highlighted.

If in fact the server sends an "exit" event and then an "enter" event 
for the menu, a naive client will draw the button un-highlighted (since 
as far as it knows the exit was because the mouse entered a different 
client's window) and then when it sees the enter it has to draw it again 
highlighted. If it does a commit, the user will see it blink. This is wrong.

Now obviously the client can wait (I think actually zero time because it 
should be in the same block of events) and see if there is an enter 
event, but it would be a lot easier on the logic if it did not get the 
enter event at all!

This is not a joke, these sort of problems make toolkits annoying and 
complex to write.


More information about the wayland-devel mailing list