Fix dialogs behavior in full screen mode. [#736395]