author | Alan Coopersmith <Alan.Coopersmith@Sun.COM> |
Tue, 31 Jul 2007 15:09:29 -0700 | |
changeset 194 | c2b76d8a41f7 |
parent 143 | a1d0fad37e5a |
permissions | -rw-r--r-- |
101
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
1 |
--- xorg-server-1.2.0/hw/kdrive/ephyr/hostx.c~ 2007-01-22 21:39:15.000000000 -0800 |
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
2 |
+++ xorg-server-1.2.0/hw/kdrive/ephyr/hostx.c 2007-02-02 16:03:09.840426000 -0800 |
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
3 |
@@ -40,6 +40,7 @@ |
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
4 |
#include <X11/Xatom.h> |
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
5 |
#include <X11/keysym.h> |
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
6 |
#include <X11/extensions/XShm.h> |
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
7 |
+#include <X11/Xmd.h> |
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
8 |
|
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
9 |
/* |
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
10 |
* All xlib calls go here, which gets built as its own .a . |
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
11 |
@@ -79,7 +80,8 @@ |
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
12 |
|
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
13 |
extern KeySym EphyrKeymap[]; |
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
14 |
|
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
15 |
-extern KeySym kdKeymap[]; |
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
16 |
+extern CARD32 kdKeymap[]; /* really KeySym, but Xlib & Xserver |
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
17 |
+ use different sizes for that */ |
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
18 |
extern int kdMinScanCode; |
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
19 |
extern int kdMaxScanCode; |
9cf86bf83343
6520998 64-bit Xephyr crashes on startup
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
20 |
extern int kdMinKeyCode; |
143
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
21 |
|
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
22 |
|
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
23 |
Backport to 7.2 of commit 47c1c948e69cfba950ad37a3133fa2db0bd0ff2c |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
24 |
Original Author: Daniel Stone <[email protected]> |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
25 |
Date: Tue Aug 15 15:25:16 2006 +0300 |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
26 |
|
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
27 |
kdrive/input: only run special key behaviours on non-XKB |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
28 |
Only attempt to manually deal with special key behaviours (e.g. terminating |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
29 |
the server) when not using XKB, and leave locking behaviour up to GKVE. |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
30 |
|
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
31 |
--- xorg-server-1.2.0/hw/kdrive/src/kinput.c 2007-01-22 21:39:15.000000000 -0800 |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
32 |
+++ xorg-server-1.2.0/hw/kdrive/src/kinput.c 2007-04-09 18:58:43.562841000 -0700 |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
33 |
@@ -616,15 +616,6 @@ |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
34 |
RegisterKeyboardDevice(pKeyboard); |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
35 |
miRegisterPointerDevice(screenInfo.screens[0], pPointer); |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
36 |
mieqInit(&pKeyboard->public, &pPointer->public); |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
37 |
-#ifdef XINPUT |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
38 |
- { |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
39 |
- static long zero1, zero2; |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
40 |
- |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
41 |
- //SetExtInputCheck (&zero1, &zero2); |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
42 |
- ErrorF("Extended Input Devices not yet supported. Impelement it at line %d in %s\n", |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
43 |
- __LINE__, __FILE__); |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
44 |
- } |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
45 |
-#endif |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
46 |
} |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
47 |
|
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
48 |
/* |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
49 |
@@ -1303,20 +1294,6 @@ |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
50 |
xE.u.u.type = KeyPress; |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
51 |
xE.u.u.detail = key_code; |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
52 |
|
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
53 |
- switch (KEYCOL1(key_code)) |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
54 |
- { |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
55 |
- case XK_Num_Lock: |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
56 |
- case XK_Scroll_Lock: |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
57 |
- case XK_Shift_Lock: |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
58 |
- case XK_Caps_Lock: |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
59 |
- if (xE.u.u.type == KeyRelease) |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
60 |
- return; |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
61 |
- if (IsKeyDown (key_code)) |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
62 |
- xE.u.u.type = KeyRelease; |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
63 |
- else |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
64 |
- xE.u.u.type = KeyPress; |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
65 |
- } |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
66 |
- |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
67 |
/* |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
68 |
* Check pressed keys which are already down |
a1d0fad37e5a
6539225 Xephyr has problems with caps lock
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
101
diff
changeset
|
69 |
*/ |