[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xine-devel
Subject:    Re: [xine-devel] xine-ui: Problems with faked keys for screen saver
From:       Hans-Dieter Kosch <hdkosch () t-online ! de>
Date:       2005-05-12 23:51:50
Message-ID: 4283EC16.4080401 () t-online ! de
[Download RAW message or body]

Hi,

Marco Gerards wrote:
> Hans-Dieter Kosch <hdkosch@t-online.de> writes:
> [...]
> 
> 
>>  #ifdef HAVE_XTESTEXTENSION
>>-  gVw->fake_keys[0] = XKeysymToKeycode(gGui->video_display, XK_Shift_L);
>>-  gVw->fake_keys[1] = XKeysymToKeycode(gGui->video_display, XK_Control_L);
>>+  gVw->fake_keys[0] = XKeysymToKeycode(gGui->video_display,
>>XK_Scroll_Lock);
>>+  gVw->fake_keys[1] = XKeysymToKeycode(gGui->video_display, XK_Num_Lock);
> 
> 
> What happens if there is no key mapped to capslock?  For example when
> the capslock key is disabled or mapped to control?
> 
The patch doesn't fake capslock, so we're save regarding that.

If it's not mapped, XKeysymToKeycode() in xitk.c returns keycode zero 
which doesn't exist and does no harm. If it's disabled, nothing happens. 
If it's mapped to control, we would be lost if we had faked it.

Anyway, one could always remap his keyboard to his favour, but should 
not expect everything to work.

Cheers,

Hans-Dieter


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
xine-devel mailing list
xine-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic