@Acki, please refer to https://www.nomachine.com/protecting-the-host-screen-during-a-remote-control-session
Section “Enabling automatic screen lock when disconnecting”. By default, it is disabled.
The display of a remote computer can be protected further by enabling the system’s own screen lock which will be activated automatically as soon as the last NoMachine user disconnects.
- Select the ‘Security’ tab of the Server preferences UI.
- Check the box ‘Lock the physical screen on disconnect’ (Fig. 4).
You can turn this feature on or off at any time. You will need to provide the administrator’s username and password in order to enable it or disable it. Is the screen locked when you disconnect once you’ve checked the box?