Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2622 - (hide annotations) (download)
Thu Jul 16 07:39:51 2015 UTC (8 years, 11 months ago) by niro
File size: 3425 byte(s)
-rediffed for 1.4.2
1 niro 2622 diff -up tigervnc-1.4.2/unix/xserver/hw/vnc/InputXKB.cc.getmaster tigervnc-1.4.2/unix/xserver/hw/vnc/InputXKB.cc
2     --- tigervnc-1.4.2/unix/xserver/hw/vnc/InputXKB.cc.getmaster 2015-01-23 23:37:23.000000000 +0000
3     +++ tigervnc-1.4.2/unix/xserver/hw/vnc/InputXKB.cc 2015-02-13 12:32:54.398502082 +0000
4     @@ -208,10 +208,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     @@ -232,7 +229,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     @@ -257,7 +254,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     @@ -294,7 +291,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     @@ -347,7 +344,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     @@ -375,7 +372,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     @@ -416,7 +413,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     @@ -473,7 +470,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     @@ -511,7 +508,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     @@ -545,7 +542,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)