Please help me in full_screen task

Hey guys, I need your help.I have write a touch screen task for rat with psychopy API in ubuntu22.0, but I can not lock the window when rat touch the screen. Sometimes it turn to desktop or others when rat touch and drag. How to lock psychopy window in a full screen task?