Closed Bug 289633 Opened 20 years ago Closed 13 years ago

wrong type for nsKeyCode::KeyCodeIsModifier

Categories

(Core Graveyard :: Widget: Xlib, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: timeless, Assigned: timeless)

Details

Attachments

(1 obsolete file)

XButtonEvent(3X11)        XLIB FUNCTIONS       XButtonEvent(3X11)
       typedef struct {
            int type;                /* KeyPress or KeyRelease */
            unsigned long serial;    /* # of last request processed by server */
            Bool send_event;         /* true if this came from a SendEvent reque
st */
            Display *display;        /* Display the event was read from */
            Window window;           /* ``event'' window it is reported relative
 to */
            Window root;             /* root window that the event occurred on *
/
            Window subwindow;        /* child window */
            Time time;               /* milliseconds */
            int x, y;                /* pointer x, y coordinates in event window
 */
            int x_root, y_root;      /* coordinates relative to root */
            unsigned int state;      /* key or button mask */
            unsigned int keycode;    /* detail */
            Bool same_screen;        /* same screen flag */
       } XKeyEvent;

KeyCode is 8bits, which is problematic since we're comparing it against numbers
that are more than 8bits.
Attached patch fix declaration to match data (obsolete) — Splinter Review
Attachment #180115 - Flags: superreview?(roc)
Attachment #180115 - Flags: review?(daa)
Comment on attachment 180115 [details] [diff] [review]
fix declaration to match data

new patch coming after testing
Attachment #180115 - Attachment is obsolete: true
Attachment #180115 - Flags: superreview?(roc)
Attachment #180115 - Flags: review?(daa)
Product: Core → Core Graveyard
Xlib is not supported nor is it a target.  Xlib widget code has also been deleted from the tree.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: