[MPlayer-dev-eng] [PATCH] double click to switch to full screen in GUI
laurent wozniak
laurent.wozniak at laposte.net
Thu Sep 14 23:11:07 CEST 2006
Includes another patch ...
Adam Tlałka wrote:
> So maybe this could be a good solution:
> assign pause/unpase to single click event
> assign fullscreen/window to double click event
>
> so in case of one double click action you have two single click events
> and one double click event which means pause resize unpause actions
> for example which could be acceptable IMHO
This join the generic idea of:
Binding an arbitrary command to any mouse button X single click, if not
already bound,
when the corresponding mouse button X double click is bound to a command.
Then, we have to put a name on this arbitrary command.
The do nothing command is transparent to the user.
The pause command is not:
If the user binds mouse 8 double click to some command, but when he
clicks on mouse 8, the screen pauses, he'll probably find this a bit
strange.
This is why I've implemented the arbitrary command as: do nothing.
Test case:
- Mouse 1 double click is bound to full screen in configuration.
- On initialization, mouse 1 click get bound to do nothing.
- The user performs the following actions:
- Mouse 1 single click, do nothing, mouse 1 double click, full screen.
- Mouse 8 single click, log mouse 8 click not bound, mouse 8 double
click, log mouse 8 double click not bound.
So, here is the patch that implements this behavior.
Cheers,
Laurent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: double_click.diff
Type: text/x-patch
Size: 14689 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060914/ef069fcf/attachment.bin>
More information about the MPlayer-dev-eng
mailing list