aboutsummaryrefslogtreecommitdiff
path: root/src/window
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-05 14:44:21 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-05 14:44:21 +0100
commitccb3e58071b3e807109918184727b305df8b96a0 (patch)
treed8830f9a3ec84ea17fea064b3ff27b2112c4ca74 /src/window
parent7dd8b0cc0561c5fa0c9096b79fb7f0647b3470b4 (diff)
Fix font being corrupt with certain sizes, fix image being corrupt if its rgb, fix window resize incorrect size
Diffstat (limited to 'src/window')
-rw-r--r--src/window/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window/window.c b/src/window/window.c
index f975c1e..30abebb 100644
--- a/src/window/window.c
+++ b/src/window/window.c
@@ -158,6 +158,7 @@ static mgl_key x11_keysym_to_mgl_key(KeySym key_sym) {
case XK_BackSpace: return MGL_KEY_BACKSPACE;
case XK_Tab: return MGL_KEY_TAB;
case XK_Return: return MGL_KEY_ENTER;
+ case XK_Escape: return MGL_KEY_ESCAPE;
case XK_Delete: return MGL_KEY_DELETE;
case XK_Home: return MGL_KEY_HOME;
case XK_Left: return MGL_KEY_LEFT;
@@ -243,7 +244,6 @@ static bool mgl_window_on_receive_event(mgl_window *self, XEvent *xev, mgl_event
event->type = MGL_EVENT_RESIZED;
event->size.width = self->size.x;
event->size.height = self->size.y;
- event->mouse_move.y = self->cursor_position.y;
return true;
}
return false;