Skip to content

Commit

Permalink
Default to draw_own_cursor_in_fullscreen = true
Browse files Browse the repository at this point in the history
  • Loading branch information
geneotech committed Jul 27, 2024
1 parent 43904d3 commit b204aae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion hypersomnia/default_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"position": [40, 40],
"bpp": 32,
"size": [1200, 700],
"draw_own_cursor_in_fullscreen": false,
"draw_own_cursor_in_fullscreen": true,
"log_keystrokes": false,
"vsync_mode": "OFF",
"max_fps": 400,
Expand Down
5 changes: 5 additions & 0 deletions src/application/gui/settings_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,12 @@ void settings_gui_state::perform(

revertable_checkbox("Draw own cursor in fullscreen", config.window.draw_own_cursor_in_fullscreen);

#if 0
tooltip_on_hover("Try this if the cursor malfunctions for any reason.\nE.g. sometimes the system cursor disappears in fullscreen on Windows,\nor it breaks with fractional scaling on Wayland.");
#else
tooltip_on_hover("Disable if the cursor malfunctions for any reason.");
#endif

#endif

//input_text<100>(CONFIG_NVP(window.name), ImGuiInputTextFlags_EnterReturnsTrue); revert(config.window.name);
Expand Down
11 changes: 0 additions & 11 deletions src/make_canon_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,6 @@ inline void make_canon_config(config_json_table& result, bool is_dedicated_serve
result.audio.output_mode = audio_output_mode::AUTO;
}

#if PLATFORM_LINUX
/*
We don't yet properly implement detecting whether the app is in fs or not.
So better use the system cursor so that we don't clip it accidentally.
*/

result.window.draw_own_cursor_in_fullscreen = false;
#else
result.window.draw_own_cursor_in_fullscreen = true;
#endif

#if PLATFORM_MACOS
result.window.fullscreen = true;
#endif
Expand Down

0 comments on commit b204aae

Please sign in to comment.