[vlc-devel] [PATCH 06/11] kva: handle the flag in VOUT_DISPLAY_HIDE_MOUSE
Steve Lhomme
robux4 at gmail.com
Wed Aug 9 13:05:28 CEST 2017
On Wed, Aug 9, 2017 at 12:54 PM, KO Myung-Hun <komh78 at gmail.com> wrote:
>
>
> Steve Lhomme wrote:
>> ---
>> modules/video_output/kva.c | 7 ++++---
>> 1 file changed, 4 insertions(+), 3 deletions(-)
>>
>> diff --git a/modules/video_output/kva.c b/modules/video_output/kva.c
>> index dbd2a737ed..f181e70f35 100644
>> --- a/modules/video_output/kva.c
>> +++ b/modules/video_output/kva.c
>> @@ -419,13 +419,14 @@ static int Control( vout_display_t *vd, int query, va_list args )
>> case VOUT_DISPLAY_HIDE_MOUSE:
>> {
>> POINTL ptl;
>> + bool hide = va_arg(args, int);
>>
>> WinQueryPointerPos( HWND_DESKTOP, &ptl );
>> - if( !sys->is_mouse_hidden &&
>> + if( sys->is_mouse_hidden != hide &&
>> WinWindowFromPoint( HWND_DESKTOP, &ptl, TRUE ) == sys->client )
>> {
>> - WinShowPointer( HWND_DESKTOP, FALSE );
>> - sys->is_mouse_hidden = true;
>> + WinShowPointer( HWND_DESKTOP, hide ? TRUE : FALSE );
>
> Do you mean to show a mouse cursor when `hide' is true ?
Ah indeed, it's inverted. But unless 02/11 is merged, this patch is moot.
>> + sys->is_mouse_hidden = hide;
>> }
>>
>> return VLC_SUCCESS;
>
> --
> KO Myung-Hun
>
> Using Mozilla SeaMonkey 2.7.2
> Under OS/2 Warp 4 for Korean with FixPak #15
> In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM
>
> Korean OS/2 User Community : http://www.os2.kr/
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list