[MPlayer-dev-eng] [PATCH] double click to switch to full screen in GUI

laurent wozniak laurent.wozniak at laposte.net
Tue Sep 12 19:55:05 CEST 2006


Diego Biurrun wrote:
> But this is not entirely the desired behavior.  If I doubleclick I want
> just the doubleclick action, not first the singleclick action and then
> the doubleclick action...
>
>   

I understand what you mean but detecting just the double click is not 
possible.
As I said, when the user click, you can't know whether in the future he 
will click again or not.
So when he click, you cannot decide if it is a single click (and run the 
associated action immediately)
or if it is going to be a double click (and wait to execute another 
action in the future).

This is why some ergonomicists have decided that the double click 
semantic is: continuing the previous action.
Example 1: In a file browser,  1st click select item, 2nd click execute 
selected item.
Example 2: In a text field, 1st click focus the text field and place the 
cursor, 2nd click select the word containing the cursor, 3rd click 
select the whole line containing the cursor.

I see 2 possible workarounds for MPlayer:
1)  Respect the double click semantic and have 1st click select the 
window, which is already done by the windowing system, thus bind 1st 
click to "no operation".
This can be done by binding all mouse button single click to "no 
operation" by default.
2) In the get command from key, don't log a warning if the key is a 
mouse click and no command is found.

What do you think of those workarounds ? Or do you have any other ideas ?

Cheers,
Laurent




More information about the MPlayer-dev-eng mailing list