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

Adam Tlałka atlka at pg.gda.pl
Thu Sep 14 10:18:16 CEST 2006


Dnia 14-09-2006 o 05:40:28 Rich Felker <dalias at aerifal.cx> napisał:

> On Thu, Sep 14, 2006 at 01:03:00AM +0200, Diego Biurrun wrote:
>> On Tue, Sep 12, 2006 at 07:55:05PM +0200, laurent wozniak wrote:
>> > 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.
>>
>> This may be very very naive, but why not wait for a certain time after
>> the first click and then fire a singleclick action if no second click
>> comes or a doubleclick if it does appear within the time window..
>
> You can't wait to fire the singleclick. On doubleclick, both a
> singleclick event and a doubleclick event must occur. This is the same
> on windows too.
>
> Rich
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

Regards
-- 
Adam Tlałka      mailto:atlka at pg.gda.pl    ^v^ ^v^ ^v^
Computer Center,  Gdańsk University of Technology, Poland
PGP public key:   finger atlka at sunrise.pg.gda.pl



More information about the MPlayer-dev-eng mailing list