gksudo is not taking full focus – python, glade

Ubuntu 18.04.6 LTS. I got this script in python, and its uses Glade as a gui. Here is the main file: https://github.com/stuk88/UbuntuClearMemoryCache/blob/master/main.py So. The code at fault here is: runAsRoot("gksudo sysctl vm.drop_caches=1") And I dont know why dksudu is not taking focus. Switching windows with alt+` is not working either. >Solution : You are trying… Read More gksudo is not taking full focus – python, glade