But this is actually a problem of the Qt library. When smplayer changes the flags of the windows, Qt hides the window, and then smplayer shows it again, causing that flicker.