Add option to specify the initial window position

Add --window-x and --window-y parameters.

Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
Diego Fernando Díaz A
2019-08-29 00:25:17 -05:00
committed by Romain Vimont
parent 771bd8404d
commit ce5635f28c
5 changed files with 57 additions and 7 deletions

View File

@@ -18,6 +18,8 @@ struct scrcpy_options {
uint16_t port;
uint16_t max_size;
uint32_t bit_rate;
int16_t window_x;
int16_t window_y;
bool show_touches;
bool fullscreen;
bool always_on_top;
@@ -38,6 +40,8 @@ struct scrcpy_options {
.port = DEFAULT_LOCAL_PORT, \
.max_size = DEFAULT_LOCAL_PORT, \
.bit_rate = DEFAULT_BIT_RATE, \
.window_x = -1, \
.window_y = -1, \
.show_touches = false, \
.fullscreen = false, \
.always_on_top = false, \