1
0
Fork 0

Platform/Unix/X11EventQueue: send KeyPress and KeyRelease events to X11Keyboard::handleMessage()

This commit is contained in:
Henrik Hautakoski 2020-10-13 18:14:10 +02:00
parent eb0889470e
commit 573d546961

View file

@ -2,6 +2,7 @@
#include <Spectre/System/Log.h>
#include "X11EventQueue.h"
#include "X11SharedDisplay.h"
#include "X11Keyboard.h"
#include "X11WindowEventHandler.h"
namespace sp {
@ -48,7 +49,9 @@ bool X11EventQueue::poll(Event& event)
break;
case KeyPress:
case KeyRelease:
Log::info("X11: KeyEvent");
if (X11Keyboard::handleMessage(&xevent.xkey, event)) {
return true;
}
break;
case ButtonPress:
case ButtonRelease: