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:
committed by
Romain Vimont
parent
771bd8404d
commit
ce5635f28c
@@ -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, \
|
||||
|
||||
Reference in New Issue
Block a user