Magellan Linux

Annotation of /trunk/tigervnc/patches/tigervnc-1.3.0-getmaster.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2252 - (hide annotations) (download)
Mon Aug 12 09:25:56 2013 UTC (10 years, 10 months ago) by niro
File size: 3425 byte(s)
-add patches for 1.3.0
1 niro 2252 diff -up tigervnc-1.3.0/unix/xserver/hw/vnc/InputXKB.cc.getmaster tigervnc-1.3.0/unix/xserver/hw/vnc/InputXKB.cc
2     --- tigervnc-1.3.0/unix/xserver/hw/vnc/InputXKB.cc.getmaster 2013-07-12 09:30:50.551459439 +0100
3     +++ tigervnc-1.3.0/unix/xserver/hw/vnc/InputXKB.cc 2013-07-12 09:38:31.037480528 +0100
4     @@ -232,10 +232,7 @@ void InputDevice::PrepareInputDevices(vo
5    
6     unsigned InputDevice::getKeyboardState(void)
7     {
8     - DeviceIntPtr master;
9     -
10     - master = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT);
11     - return XkbStateFieldFromRec(&master->key->xkbInfo->state);
12     + return XkbStateFieldFromRec(&keyboardDev->master->key->xkbInfo->state);
13     }
14    
15     unsigned InputDevice::getLevelThreeMask(void)
16     @@ -256,7 +253,7 @@ unsigned InputDevice::getLevelThreeMask(
17     return 0;
18     }
19    
20     - xkb = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT)->key->xkbInfo->desc;
21     + xkb = keyboardDev->master->key->xkbInfo->desc;
22    
23     act = XkbKeyActionPtr(xkb, keycode, state);
24     if (act == NULL)
25     @@ -281,7 +278,7 @@ KeyCode InputDevice::pressShift(void)
26     if (state & ShiftMask)
27     return 0;
28    
29     - xkb = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT)->key->xkbInfo->desc;
30     + xkb = keyboardDev->master->key->xkbInfo->desc;
31     for (key = xkb->min_key_code; key <= xkb->max_key_code; key++) {
32     XkbAction *act;
33     unsigned char mask;
34     @@ -318,7 +315,7 @@ std::list<KeyCode> InputDevice::releaseS
35     if (!(state & ShiftMask))
36     return keys;
37    
38     - master = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT);
39     + master = keyboardDev->master;
40     xkb = master->key->xkbInfo->desc;
41     for (key = xkb->min_key_code; key <= xkb->max_key_code; key++) {
42     XkbAction *act;
43     @@ -371,7 +368,7 @@ KeyCode InputDevice::pressLevelThree(voi
44     return 0;
45     }
46    
47     - xkb = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT)->key->xkbInfo->desc;
48     + xkb = keyboardDev->master->key->xkbInfo->desc;
49    
50     act = XkbKeyActionPtr(xkb, keycode, state);
51     if (act == NULL)
52     @@ -399,7 +396,7 @@ std::list<KeyCode> InputDevice::releaseL
53     if (!(state & mask))
54     return keys;
55    
56     - master = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT);
57     + master = keyboardDev->master;
58     xkb = master->key->xkbInfo->desc;
59     for (key = xkb->min_key_code; key <= xkb->max_key_code; key++) {
60     XkbAction *act;
61     @@ -440,7 +437,7 @@ KeyCode InputDevice::keysymToKeycode(Key
62     if (new_state != NULL)
63     *new_state = state;
64    
65     - xkb = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT)->key->xkbInfo->desc;
66     + xkb = keyboardDev->master->key->xkbInfo->desc;
67     for (key = xkb->min_key_code; key <= xkb->max_key_code; key++) {
68     unsigned int state_out;
69     KeySym dummy;
70     @@ -497,7 +494,7 @@ bool InputDevice::isLockModifier(KeyCode
71     XkbDescPtr xkb;
72     XkbAction *act;
73    
74     - xkb = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT)->key->xkbInfo->desc;
75     + xkb = keyboardDev->master->key->xkbInfo->desc;
76    
77     act = XkbKeyActionPtr(xkb, keycode, state);
78     if (act == NULL)
79     @@ -535,7 +532,7 @@ bool InputDevice::isAffectedByNumLock(Ke
80     if (numlock_keycode == 0)
81     return false;
82    
83     - xkb = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT)->key->xkbInfo->desc;
84     + xkb = keyboardDev->master->key->xkbInfo->desc;
85    
86     act = XkbKeyActionPtr(xkb, numlock_keycode, state);
87     if (act == NULL)
88     @@ -569,7 +566,7 @@ KeyCode InputDevice::addKeysym(KeySym ke
89     KeySym *syms;
90     KeySym upper, lower;
91    
92     - master = GetMaster(keyboardDev, KEYBOARD_OR_FLOAT);
93     + master = keyboardDev->master;
94     xkb = master->key->xkbInfo->desc;
95     for (key = xkb->max_key_code; key >= xkb->min_key_code; key--) {
96     if (XkbKeyNumGroups(xkb, key) == 0)