[qwaq] Ensure super's handleEvent is called

This fixes the inability to single-step (debug window couldn't regain
focus).
This commit is contained in:
Bill Currie 2020-03-26 11:04:57 +09:00
parent 1f8301774c
commit af0333a172
3 changed files with 6 additions and 1 deletions

View file

@ -52,6 +52,8 @@
{
ListenerGroup *action = nil;
[super handleEvent: event];
if (event.what & qe_mouse) {
switch ((qwaq_mouse_event) (event.what & qe_mouse)) {
case qe_mousedown:

View file

@ -88,6 +88,8 @@ static int handleEvent (Editor *self, qwaq_event_t *event)
-handleEvent:(qwaq_event_t *) event
{
[super handleEvent: event];
// give any listeners a chance to override or extend event handling
_event.editor = self;
_event.event = event;

View file

@ -184,8 +184,9 @@
-handleEvent: (qwaq_event_t *) event
{
int offset = event.what & qe_positional;
[super handleEvent: event];
int offset = event.what & qe_positional;
if (offset) {
event.mouse.x -= xpos;
event.mouse.y -= ypos;