mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 00:40:55 +00:00
[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:
parent
1f8301774c
commit
af0333a172
3 changed files with 6 additions and 1 deletions
|
@ -52,6 +52,8 @@
|
||||||
{
|
{
|
||||||
ListenerGroup *action = nil;
|
ListenerGroup *action = nil;
|
||||||
|
|
||||||
|
[super handleEvent: event];
|
||||||
|
|
||||||
if (event.what & qe_mouse) {
|
if (event.what & qe_mouse) {
|
||||||
switch ((qwaq_mouse_event) (event.what & qe_mouse)) {
|
switch ((qwaq_mouse_event) (event.what & qe_mouse)) {
|
||||||
case qe_mousedown:
|
case qe_mousedown:
|
||||||
|
|
|
@ -88,6 +88,8 @@ static int handleEvent (Editor *self, qwaq_event_t *event)
|
||||||
|
|
||||||
-handleEvent:(qwaq_event_t *) event
|
-handleEvent:(qwaq_event_t *) event
|
||||||
{
|
{
|
||||||
|
[super handleEvent: event];
|
||||||
|
|
||||||
// give any listeners a chance to override or extend event handling
|
// give any listeners a chance to override or extend event handling
|
||||||
_event.editor = self;
|
_event.editor = self;
|
||||||
_event.event = event;
|
_event.event = event;
|
||||||
|
|
|
@ -184,8 +184,9 @@
|
||||||
|
|
||||||
-handleEvent: (qwaq_event_t *) event
|
-handleEvent: (qwaq_event_t *) event
|
||||||
{
|
{
|
||||||
int offset = event.what & qe_positional;
|
[super handleEvent: event];
|
||||||
|
|
||||||
|
int offset = event.what & qe_positional;
|
||||||
if (offset) {
|
if (offset) {
|
||||||
event.mouse.x -= xpos;
|
event.mouse.x -= xpos;
|
||||||
event.mouse.y -= ypos;
|
event.mouse.y -= ypos;
|
||||||
|
|
Loading…
Reference in a new issue