mirror of
https://github.com/st3fan/ewm.git
synced 2025-01-07 04:29:33 +00:00
Fixes #75 Force screen update after changing window mode
This commit is contained in:
parent
01d3ee8941
commit
531d469212
@ -87,6 +87,9 @@ static bool ewm_one_poll_event(struct ewm_one_t *one, SDL_Window *window) {
|
||||
switch (event.type) {
|
||||
case SDL_QUIT:
|
||||
return false;
|
||||
case SDL_WINDOWEVENT:
|
||||
one->tty->screen_dirty = true;
|
||||
break;
|
||||
case SDL_KEYDOWN:
|
||||
if (event.key.keysym.mod & KMOD_CTRL) {
|
||||
if (event.key.keysym.sym >= SDLK_a && event.key.keysym.sym <= SDLK_z) {
|
||||
|
@ -326,6 +326,10 @@ static bool ewm_two_poll_event(struct ewm_two_t *two, SDL_Window *window) { // T
|
||||
case SDL_QUIT:
|
||||
return false;
|
||||
|
||||
case SDL_WINDOWEVENT:
|
||||
two->screen_dirty = true;
|
||||
break;
|
||||
|
||||
case SDL_JOYBUTTONDOWN:
|
||||
if (event.jbutton.button < EWM_A2P_BUTTON_COUNT) {
|
||||
two->buttons[event.jbutton.button] = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user