Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
15c909ba
Commit
15c909ba
authored
Apr 15, 1994
by
Richard M. Stallman
Browse files
entered into RCS
parent
425c7aa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
lwlib/dispatch.c
lwlib/dispatch.c
+9
-14
No files found.
lwlib/dispatch.c
View file @
15c909ba
...
...
@@ -30,21 +30,16 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <X11/Xatom.h>
#include "dispatch.h"
#ifdef THIS_IS_X11R4
#include <X11/Xlib.h>
#include <X11/cursorfont.h>
#include <X11/Xutil.h>
#ifdef THIS_IS_X11R5
ERROR
!!
only
one
of
THIS_IS_X11R4
or
THIS_IS_X11R5
must
be
defined
.
#ifdef XlibSpecificationRelease
#if XlibSpecificationRelease >= 5
#define HAVE_X11R5
#endif
#else
/* ! THIS_IS_X11R4 */
#ifndef THIS_IS_X11R5
ERROR
!!
one
of
THIS_IS_X11R4
or
THIS_IS_X11R5
must
be
defined
.
#endif
#endif
/* ! THIS_IS_X11R4 */
/* ## All of the code on this page was copied from the X11R5 lib/Xt/Event.c,
## but is compatible with X11R4; the code in Event.c is different, but
## functionally equivalent for our purposes.
...
...
@@ -114,7 +109,7 @@ static EventMask Const masks[] = {
NonMaskableMask
/* MappingNotify */
};
#ifdef
THIS_IS
_X11R
4
#if
n
def
HAVE
_X11R
5
static
/* in R5, this is not static, so we don't need to define it at all */
EventMask
_XtConvertTypeToMask
(
eventType
)
...
...
@@ -127,7 +122,7 @@ EventMask _XtConvertTypeToMask (eventType)
return
0
;
}
#endif
/*
R4
*/
#endif
/*
not HAVE_X11R5
*/
/* -- _XtOnGrabList() omitted -- */
...
...
@@ -174,7 +169,7 @@ static Boolean WouldDispatchEvent(event, widget, mask, pd)
for
(
p
=
widget
->
core
.
event_table
;
p
!=
NULL
;
p
=
p
->
next
)
if
((
mask
&
p
->
mask
)
!=
0
#ifdef
THIS_IS
_X11R
4
#if
n
def
HAVE
_X11R
5
||
(
mask
==
0
&&
p
->
non_filter
)
#endif
)
...
...
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