rename handler functions
This commit is contained in:
parent
24e15433b7
commit
9ab236d500
47
event.c
47
event.c
|
@ -123,7 +123,7 @@ resizemouse(Client * c, jdwm_config *jdwmconf)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
buttonpress(XEvent * e, jdwm_config *jdwmconf)
|
handle_event_buttonpress(XEvent * e, jdwm_config *jdwmconf)
|
||||||
{
|
{
|
||||||
int i, x;
|
int i, x;
|
||||||
Client *c;
|
Client *c;
|
||||||
|
@ -185,7 +185,7 @@ buttonpress(XEvent * e, jdwm_config *jdwmconf)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
configurerequest(XEvent * e, jdwm_config *jdwmconf __attribute__ ((unused)))
|
handle_event_configurerequest(XEvent * e, jdwm_config *jdwmconf __attribute__ ((unused)))
|
||||||
{
|
{
|
||||||
Client *c;
|
Client *c;
|
||||||
XConfigureRequestEvent *ev = &e->xconfigurerequest;
|
XConfigureRequestEvent *ev = &e->xconfigurerequest;
|
||||||
|
@ -233,7 +233,7 @@ configurerequest(XEvent * e, jdwm_config *jdwmconf __attribute__ ((unused)))
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
configurenotify(XEvent * e, jdwm_config *jdwmconf)
|
handle_event_configurenotify(XEvent * e, jdwm_config *jdwmconf)
|
||||||
{
|
{
|
||||||
XConfigureEvent *ev = &e->xconfigure;
|
XConfigureEvent *ev = &e->xconfigure;
|
||||||
|
|
||||||
|
@ -250,7 +250,7 @@ configurenotify(XEvent * e, jdwm_config *jdwmconf)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
destroynotify(XEvent * e, jdwm_config *jdwmconf)
|
handle_event_destroynotify(XEvent * e, jdwm_config *jdwmconf)
|
||||||
{
|
{
|
||||||
Client *c;
|
Client *c;
|
||||||
XDestroyWindowEvent *ev = &e->xdestroywindow;
|
XDestroyWindowEvent *ev = &e->xdestroywindow;
|
||||||
|
@ -260,7 +260,7 @@ destroynotify(XEvent * e, jdwm_config *jdwmconf)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
enternotify(XEvent * e, jdwm_config *jdwmconf)
|
handle_event_enternotify(XEvent * e, jdwm_config *jdwmconf)
|
||||||
{
|
{
|
||||||
Client *c;
|
Client *c;
|
||||||
XCrossingEvent *ev = &e->xcrossing;
|
XCrossingEvent *ev = &e->xcrossing;
|
||||||
|
@ -277,7 +277,7 @@ enternotify(XEvent * e, jdwm_config *jdwmconf)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
expose(XEvent * e, jdwm_config *jdwmconf)
|
handle_event_expose(XEvent * e, jdwm_config *jdwmconf)
|
||||||
{
|
{
|
||||||
XExposeEvent *ev = &e->xexpose;
|
XExposeEvent *ev = &e->xexpose;
|
||||||
|
|
||||||
|
@ -286,7 +286,7 @@ expose(XEvent * e, jdwm_config *jdwmconf)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
keypress(XEvent * e, jdwm_config *jdwmconf)
|
handle_event_keypress(XEvent * e, jdwm_config *jdwmconf)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
KeySym keysym;
|
KeySym keysym;
|
||||||
|
@ -300,7 +300,7 @@ keypress(XEvent * e, jdwm_config *jdwmconf)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
leavenotify(XEvent * e, jdwm_config *jdwmconf)
|
handle_event_leavenotify(XEvent * e, jdwm_config *jdwmconf)
|
||||||
{
|
{
|
||||||
XCrossingEvent *ev = &e->xcrossing;
|
XCrossingEvent *ev = &e->xcrossing;
|
||||||
|
|
||||||
|
@ -312,7 +312,7 @@ leavenotify(XEvent * e, jdwm_config *jdwmconf)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
mappingnotify(XEvent * e, jdwm_config *jdwmconf)
|
handle_event_mappingnotify(XEvent * e, jdwm_config *jdwmconf)
|
||||||
{
|
{
|
||||||
XMappingEvent *ev = &e->xmapping;
|
XMappingEvent *ev = &e->xmapping;
|
||||||
|
|
||||||
|
@ -322,7 +322,7 @@ mappingnotify(XEvent * e, jdwm_config *jdwmconf)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
maprequest(XEvent * e, jdwm_config *jdwmconf)
|
handle_event_maprequest(XEvent * e, jdwm_config *jdwmconf)
|
||||||
{
|
{
|
||||||
static XWindowAttributes wa;
|
static XWindowAttributes wa;
|
||||||
XMapRequestEvent *ev = &e->xmaprequest;
|
XMapRequestEvent *ev = &e->xmaprequest;
|
||||||
|
@ -336,7 +336,7 @@ maprequest(XEvent * e, jdwm_config *jdwmconf)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
propertynotify(XEvent * e, jdwm_config *jdwmconf)
|
handle_event_propertynotify(XEvent * e, jdwm_config *jdwmconf)
|
||||||
{
|
{
|
||||||
Client *c;
|
Client *c;
|
||||||
Window trans;
|
Window trans;
|
||||||
|
@ -369,7 +369,7 @@ propertynotify(XEvent * e, jdwm_config *jdwmconf)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
unmapnotify(XEvent * e, jdwm_config *jdwmconf)
|
handle_event_unmapnotify(XEvent * e, jdwm_config *jdwmconf)
|
||||||
{
|
{
|
||||||
Client *c;
|
Client *c;
|
||||||
XUnmapEvent *ev = &e->xunmap;
|
XUnmapEvent *ev = &e->xunmap;
|
||||||
|
@ -382,16 +382,19 @@ unmapnotify(XEvent * e, jdwm_config *jdwmconf)
|
||||||
|
|
||||||
void (*handler[LASTEvent]) (XEvent *, jdwm_config *) =
|
void (*handler[LASTEvent]) (XEvent *, jdwm_config *) =
|
||||||
{
|
{
|
||||||
[ButtonPress] = buttonpress,
|
[ButtonPress] = handle_event_buttonpress,
|
||||||
[ConfigureRequest] = configurerequest,
|
[ConfigureRequest] = handle_event_configurerequest,
|
||||||
[ConfigureNotify] = configurenotify,
|
[ConfigureNotify] = handle_event_configurenotify,
|
||||||
[DestroyNotify] = destroynotify,
|
[DestroyNotify] = handle_event_destroynotify,
|
||||||
[EnterNotify] = enternotify,
|
[EnterNotify] = handle_event_enternotify,
|
||||||
[LeaveNotify] = leavenotify,
|
[LeaveNotify] = handle_event_leavenotify,
|
||||||
[Expose] = expose,
|
[Expose] = handle_event_expose,
|
||||||
[KeyPress] = keypress,
|
[KeyPress] = handle_event_keypress,
|
||||||
[MappingNotify] = mappingnotify,
|
[MappingNotify] = handle_event_mappingnotify,
|
||||||
[MapRequest] = maprequest,[PropertyNotify] = propertynotify,[UnmapNotify] = unmapnotify};
|
[MapRequest] = handle_event_maprequest,
|
||||||
|
[PropertyNotify] = handle_event_propertynotify,
|
||||||
|
[UnmapNotify] = handle_event_unmapnotify
|
||||||
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
grabkeys(Display *disp, jdwm_config *jdwmconf)
|
grabkeys(Display *disp, jdwm_config *jdwmconf)
|
||||||
|
|
Loading…
Reference in New Issue