Resolving confict between swaylock and gdm

Hi, I have both gnome and sway on my computer, even if I mostly use sway. The problem is the screen logger for me. In sway, in some cases, gdm attempts to lock my screen even if I locked with swaylock.

I’ve done that workaround that seems to work, but there is probably a better nix solution :grinning_face_with_smiling_eyes:

bindsym $mod+l exec gsettings set org.gnome.desktop.lockdown disable-lock-screen true && swaylock -i /my_image.png

Any idea?