mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-12-22 17:59:47 +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;
|
||||
} else if (strncmp(result, "region:", 7) == 0) {
|
||||
// find output
|
||||
int atPos = 0;
|
||||
for (int i = 0; i < (int)strlen(result); ++i) {
|
||||
int atPos = 7;
|
||||
for (int i = 7; i < (int)strlen(result); ++i) {
|
||||
if (result[i] == '@'){
|
||||
atPos = i;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue