summaryrefslogtreecommitdiff
path: root/multimedia/xine-ui/patches/patch-as
blob: 6f9833ca246ce32708bd2636111e1623dfde080f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-as,v 1.1.2.2 2007/03/05 12:11:42 ghen Exp $

--- src/xitk/videowin.c.orig	2007-01-08 18:39:40.000000000 +0100
+++ src/xitk/videowin.c
@@ -1449,8 +1449,8 @@ void video_window_init (window_attribute
   gVw->desktopHeight      = DisplayHeight(gGui->video_display, gGui->video_screen);
 
 #ifdef HAVE_XTESTEXTENSION
-  gVw->fake_keys[0] = XKeysymToKeycode(gGui->video_display, XK_Scroll_Lock);
-  gVw->fake_keys[1] = XKeysymToKeycode(gGui->video_display, XK_Num_Lock);
+  gVw->fake_keys[0] = XKeysymToKeycode(gGui->video_display, XK_Shift_L);
+  gVw->fake_keys[1] = XKeysymToKeycode(gGui->video_display, XK_Control_L);
   gVw->fake_key_cur = 0;
 #endif
   
@@ -2151,8 +2151,6 @@ void video_window_reset_ssaver(void) {
       XLockDisplay(gGui->video_display);
       XTestFakeKeyEvent(gGui->video_display, gVw->fake_keys[gVw->fake_key_cur], True, CurrentTime);
       XTestFakeKeyEvent(gGui->video_display, gVw->fake_keys[gVw->fake_key_cur], False, CurrentTime);
-      XTestFakeKeyEvent(gGui->video_display, gVw->fake_keys[gVw->fake_key_cur], True, CurrentTime);
-      XTestFakeKeyEvent(gGui->video_display, gVw->fake_keys[gVw->fake_key_cur], False, CurrentTime);
       XSync(gGui->video_display, False);
       XUnlockDisplay(gGui->video_display);
     }