scrcpy/app/src
Romain Vimont 6b1da2fcff Simplify size changes in fullscreen or maximized
If the content size changes (due to rotation for example) while the
window is maximized or fullscreen, the resize must be applied once
fullscreen and maximized are disabled.

The previous strategy consisted in storing the windowed size, computing
the target size on rotation, and applying it on window restoration. But
tracking the windowed size (while ignoring the non-windowed size) was
tricky, due to unspecified order of SDL events (e.g. size changes can be
notified before "maximized" events), race conditions when reading window
flags, different behaviors on different platforms...

To simplify the whole resize management, store the old content size (the
frame size, possibly rotated) when it changes while the window is
maximized or fullscreen, so that the new optimal size can be computed on
window restoration.
2020-05-23 14:19:09 +02:00
..
android Remove AINPUT_SOURCE_ANY value 2018-08-12 15:35:29 +02:00
sys Add missing include string.h 2020-04-13 16:33:21 +02:00
util Add util function to parse a list of integers 2020-01-18 17:21:00 +01:00
cli.c Add an option to keep the device awake 2020-05-02 02:14:25 +02:00
cli.h Move command-line parsing to a separate file 2019-12-08 23:18:57 +01:00
command.c Show a friendly hint for adb installation 2020-02-27 21:28:42 +01:00
command.h Show a friendly hint for adb installation 2020-02-27 21:28:42 +01:00
common.h Accept port range 2020-01-18 17:21:00 +01:00
compat.h Disable X11 compositor bypass 2019-05-05 17:35:00 +02:00
control_msg.c Rename max length constant for text injection 2020-04-13 19:38:43 +02:00
control_msg.h Rename max length constant for text injection 2020-04-13 19:38:43 +02:00
controller.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
controller.h Move utilities to util/ 2019-11-24 11:53:23 +01:00
decoder.c Remove unused includes 2019-11-27 21:40:54 +01:00
decoder.h Include config.h everywhere 2019-09-29 22:39:53 +02:00
device.c Move utilities to util/ 2019-11-24 11:53:23 +01:00
device.h Move utilities to util/ 2019-11-24 11:53:23 +01:00
device_msg.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
device_msg.h Include config.h everywhere 2019-09-29 22:39:53 +02:00
event_converter.c Handle NumPad events when NumLock is disabled 2020-03-14 17:37:14 +01:00
event_converter.h Add --prefer-text option 2019-11-07 19:01:35 +01:00
events.h Add stream layer 2019-03-02 18:45:45 +01:00
file_handler.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
file_handler.h Move utilities to util/ 2019-11-24 11:53:23 +01:00
fps_counter.c Replace SDL_Atomic by stdatomic from C11 2020-04-02 21:05:26 +02:00
fps_counter.h Replace SDL_Atomic by stdatomic from C11 2020-04-02 21:05:26 +02:00
icon.xpm Add window icon 2018-02-05 14:46:00 +01:00
input_manager.c Move rotation coordinates to screen 2020-04-18 02:15:22 +02:00
input_manager.h Add --prefer-text option 2019-11-07 19:01:35 +01:00
main.c Configure log priority early 2019-12-09 22:31:14 +01:00
opengl.c Enable trilinear filtering for OpenGL 2020-04-15 17:39:51 +02:00
opengl.h Enable trilinear filtering for OpenGL 2020-04-15 17:39:51 +02:00
receiver.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
receiver.h Move utilities to util/ 2019-11-24 11:53:23 +01:00
recorder.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
recorder.h Move utilities to util/ 2019-11-24 11:53:23 +01:00
scrcpy.c Fix Windows Ctrl Handler declaration 2020-05-11 01:32:54 +02:00
scrcpy.h Add an option to keep the device awake 2020-05-02 02:14:25 +02:00
screen.c Simplify size changes in fullscreen or maximized 2020-05-23 14:19:09 +02:00
screen.h Simplify size changes in fullscreen or maximized 2020-05-23 14:19:09 +02:00
server.c Add an option to keep the device awake 2020-05-02 02:14:25 +02:00
server.h Add an option to keep the device awake 2020-05-02 02:14:25 +02:00
stream.c Remove unused includes 2019-11-27 21:40:54 +01:00
stream.h Move utilities to util/ 2019-11-24 11:53:23 +01:00
tiny_xpm.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
tiny_xpm.h Include config.h everywhere 2019-09-29 22:39:53 +02:00
video_buffer.c Replace SDL_assert() by assert() 2019-11-27 21:19:46 +01:00
video_buffer.h Include config.h everywhere 2019-09-29 22:39:53 +02:00