diff options
Diffstat (limited to 'src/game.c')
| -rw-r--r-- | src/game.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -60,8 +60,7 @@ FocusCommand testFloatingWindowCallback(FloatingWindow* window, Game* game) } // Button test. - if (GuiButton((Rectangle){x + 10.0, y + 50.0, 40.0, 20.0}, "A") - && window->hasFocus) + if (GuiButton((Rectangle){x + 10.0, y + 50.0, 40.0, 20.0}, "A")) { puts("hi"); } @@ -255,10 +254,12 @@ void enableGameCursor(Game* game) { game->isCursorEnabled = true; EnableCursor(); + enableWindowManager(&game->wm); } void disableGameCursor(Game* game) { game->isCursorEnabled = false; DisableCursor(); + disableWindowManager(&game->wm); } |
