mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-25 23:45:58 +01:00
start at pos 7 to avoid a warn
This commit is contained in:
parent
2dc95fe02f
commit
37c76fd7d8
1 changed files with 2 additions and 2 deletions
|
@ -388,8 +388,8 @@ struct xdpw_share xdpw_wlr_chooser(struct xdpw_screencast_context *ctx) {
|
||||||
return res;
|
return res;
|
||||||
} else if (strncmp(result, "region:", 7) == 0) {
|
} else if (strncmp(result, "region:", 7) == 0) {
|
||||||
// find output
|
// find output
|
||||||
int atPos = 0;
|
int atPos = 7;
|
||||||
for (int i = 0; i < (int)strlen(result); ++i) {
|
for (int i = 7; i < (int)strlen(result); ++i) {
|
||||||
if (result[i] == '@'){
|
if (result[i] == '@'){
|
||||||
atPos = i;
|
atPos = i;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue