From 46d3f7983d8606a273c01a62e903542d13b68920 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 24 Dec 2016 01:03:20 +0100 Subject: [PATCH] When fullscreen toggling, when we go from windowed to fullscreen, hide the system cursor, otherwise show it --- command.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/command.c b/command.c index 8c1763a11a..6a069bf5dd 100644 --- a/command.c +++ b/command.c @@ -1939,7 +1939,6 @@ bool command_event(enum event_command cmd, void *data) /* Poll input to avoid possibly stale data to corrupt things. */ input_driver_poll(); command_event(CMD_EVENT_GAME_FOCUS_TOGGLE, (void *) -1); - #ifdef HAVE_MENU menu_display_set_framebuffer_dirty_flag(); if (menu_driver_ctl(RARCH_MENU_CTL_IS_ALIVE, NULL)) @@ -2383,6 +2382,10 @@ bool command_event(enum event_command cmd, void *data) * reinitialize to be safe. */ settings->video.fullscreen = !settings->video.fullscreen; command_event(CMD_EVENT_REINIT, NULL); + if (settings->video.fullscreen) + video_driver_hide_mouse(); + else + video_driver_show_mouse(); break; case CMD_EVENT_COMMAND_DEINIT: input_driver_deinit_command();