Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
a497ebf8
Commit
a497ebf8
authored
Aug 24, 2016
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update X.h and Xproto.h because of GenericEvent
parent
22652155
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
15 deletions
+53
-15
X.h
nx-X11/include/X.h
+2
-5
Xproto.h
nx-X11/include/Xproto.h
+51
-10
No files found.
nx-X11/include/X.h
View file @
a497ebf8
/*
* $Xorg: X.h,v 1.4 2001/02/09 02:03:22 xorgcvs Exp $
*/
/* Definitions for the X window system likely to be used by applications */
#ifndef X_H
...
...
@@ -215,7 +211,8 @@ are reserved in the protocol for errors and replies. */
#define ColormapNotify 32
#define ClientMessage 33
#define MappingNotify 34
#define LASTEvent 35
/* must be bigger than any event # */
#define GenericEvent 35
#define LASTEvent 36
/* must be bigger than any event # */
/* Key masks. Used as modifiers to GrabButton and GrabKey, results of QueryPointer,
...
...
nx-X11/include/Xproto.h
View file @
a497ebf8
/*
* $Xorg: Xproto.h,v 1.4 2001/02/09 02:03:23 xorgcvs Exp $
*/
/* Definitions for the X window system used by server and c bindings */
/*
...
...
@@ -263,10 +259,13 @@ restoring the definitions in X.h. */
typedef
CARD16
KeyButMask
;
/*****************
connection setup structure. This is followed by
numRoots xWindowRoot struct
s.
Connection setup structures. See Chapter 8: Connection Setup
of the X Window System Protocol specification for detail
s.
*****************/
/* Client initiates handshake with this data, followed by the strings
* for the auth protocol & data.
*/
typedef
struct
{
CARD8
byteOrder
;
BYTE
pad
;
...
...
@@ -276,6 +275,16 @@ typedef struct {
CARD16
pad2
B16
;
}
xConnClientPrefix
;
/* Server response to xConnClientPrefix.
*
* If success == Success, this is followed by xConnSetup and
* numRoots xWindowRoot structs.
*
* If success == Failure, this is followed by a reason string.
*
* The protocol also defines a case of success == Authenticate, but
* that doesn't seem to have ever been implemented by the X Consortium.
*/
typedef
struct
{
CARD8
success
;
BYTE
lengthReason
;
/*num bytes in string following if failure */
...
...
@@ -1055,8 +1064,8 @@ typedef struct _xEvent {
BYTE
bpad
;
}
createNotify
;
/*
* The event f
ei
lds in the structures for DestroyNotify, UnmapNotify,
* MapNotify, ReparentNotify, ConfigureNotify, Circ
l
ulateNotify, GravityNotify,
* The event f
ie
lds in the structures for DestroyNotify, UnmapNotify,
* MapNotify, ReparentNotify, ConfigureNotify, CirculateNotify, GravityNotify,
* must be at the same offset because server internal code is depending upon
* this to patch up the events before they are delivered.
* Also note that MapRequest, ConfigureRequest and CirculateRequest have
...
...
@@ -1118,7 +1127,7 @@ typedef struct _xEvent {
}
resizeRequest
;
struct
{
/* The event field in the circulate record is really the parent when this
is used as a CirculateRequest instea
ad of a Circlu
ateNotify */
is used as a CirculateRequest instea
d of a Circul
ateNotify */
CARD32
pad00
B32
;
Window
event
B32
,
window
B32
,
parent
B32
;
BYTE
place
;
/* Top or Bottom */
...
...
@@ -1204,6 +1213,38 @@ typedef struct _xEvent {
}
u
;
}
xEvent
;
/*********************************************************
*
* Generic event
*
* Those events are not part of the core protocol spec and can be used by
* various extensions.
* type is always GenericEvent
* extension is the minor opcode of the extension the event belongs to.
* evtype is the actual event type, unique __per extension__.
*
* GenericEvents can be longer than 32 bytes, with the length field
* specifying the number of 4 byte blocks after the first 32 bytes.
*
*
*/
typedef
struct
{
BYTE
type
;
CARD8
extension
;
CARD16
sequenceNumber
B16
;
CARD32
length
B32
;
CARD16
evtype
B16
;
CARD16
pad2
B16
;
CARD32
pad3
B32
;
CARD32
pad4
B32
;
CARD32
pad5
B32
;
CARD32
pad6
B32
;
CARD32
pad7
B32
;
}
xGenericEvent
;
/* KeymapNotify events are not included in the above union because they
are different from all other events: they do not have a "detail"
or "sequenceNumber", so there is room for a 248-bit key mask. */
...
...
@@ -1705,7 +1746,7 @@ typedef struct {
CARD32
planeMask
B32
;
}
xGetImageReq
;
/* the follo
iw
ng used by PolyText8 and PolyText16 */
/* the follo
wi
ng used by PolyText8 and PolyText16 */
typedef
struct
{
CARD8
reqType
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment