mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
Removed compiler warning about signed/unsigned comparision.
[receivedEvent:type:extra:forMode:] initialiase deltaY in all cases. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@16940 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
48bbe2a1aa
commit
02b80d6ec2
1 changed files with 4 additions and 3 deletions
|
@ -317,6 +317,7 @@ static inline int check_modifier (XEvent *xEvent, KeyCode key_code)
|
|||
}
|
||||
generic.lastClick = xEvent.xbutton.time;
|
||||
generic.lastTime = generic.lastClick;
|
||||
deltaY = 0.0;
|
||||
|
||||
if (xEvent.xbutton.button == generic.lMouse)
|
||||
eventType = NSLeftMouseDown;
|
||||
|
@ -460,7 +461,7 @@ static inline int check_modifier (XEvent *xEvent, KeyCode key_code)
|
|||
NSDebugLLog(@"NSEvent", @"WM Protocol - %s\n",
|
||||
XGetAtomName(dpy, xEvent.xclient.data.l[0]));
|
||||
|
||||
if (xEvent.xclient.data.l[0] == generic.delete_win_atom)
|
||||
if ((Atom)xEvent.xclient.data.l[0] == generic.delete_win_atom)
|
||||
{
|
||||
/*
|
||||
* WM is asking us to close a window
|
||||
|
@ -476,7 +477,7 @@ static inline int check_modifier (XEvent *xEvent, KeyCode key_code)
|
|||
data1: 0
|
||||
data2: 0];
|
||||
}
|
||||
else if (xEvent.xclient.data.l[0]
|
||||
else if ((Atom)xEvent.xclient.data.l[0]
|
||||
== generic.miniaturize_atom)
|
||||
{
|
||||
eventLocation = NSMakePoint(0,0);
|
||||
|
@ -490,7 +491,7 @@ static inline int check_modifier (XEvent *xEvent, KeyCode key_code)
|
|||
data1: 0
|
||||
data2: 0];
|
||||
}
|
||||
else if (xEvent.xclient.data.l[0]
|
||||
else if ((Atom)xEvent.xclient.data.l[0]
|
||||
== generic.take_focus_atom)
|
||||
{
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue