Skip to content

Commit

Permalink
Change Full-screen toggle behavior - use full-window <-> window (#1351)
Browse files Browse the repository at this point in the history
Let's prefer Full-window instead of Fullscreen, to avoid screenmode changes on the monitor
  • Loading branch information
midwan committed Jun 15, 2024
1 parent 30b78a3 commit c72c58e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/osdep/amiberry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,7 @@ void handle_controller_button_event(const SDL_Event& event)
inputdevice_add_inputcode(AKS_FREEZEBUTTON, state, nullptr);
}
else if (fullscreen_key.button && button == fullscreen_key.button) {
inputdevice_add_inputcode(AKS_TOGGLEDEFAULTSCREEN, state, nullptr);
inputdevice_add_inputcode(AKS_TOGGLEWINDOWFULLWINDOW, state, nullptr);
}
else if (minimize_key.button && button == minimize_key.button) {
minimizewindow(0);
Expand Down
2 changes: 1 addition & 1 deletion src/osdep/keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ bool my_kbd_handler(int keyboard, int scancode, int newstate, bool alwaysrelease
&& (fullscreen_key.modifiers.lalt || fullscreen_key.modifiers.ralt) == alt_state
&& (fullscreen_key.modifiers.lgui || fullscreen_key.modifiers.rgui) == win_state)
{
inputdevice_add_inputcode(AKS_TOGGLEDEFAULTSCREEN, 1, nullptr);
inputdevice_add_inputcode(AKS_TOGGLEWINDOWFULLWINDOW, 1, nullptr);
scancode = 0;
}
}
Expand Down

0 comments on commit c72c58e

Please sign in to comment.