Fix fullscreen mode not working correctly for QT apps (bug #8563)

Signed-off-by: Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at>