Fix inconsistent window state on X11.
Fix inconsistent window state on X11.

Fixes #66413.
DisplayServerX11 tracks some internal state about whether the window is
fullscreen, minimized, maximized or none. This commit queries the
display server when the window changes, so that this internal state can
be correctly updated.

BastiaanOlij/godot,BastiaanOlij/godot,josempans/godot,sanikoyes/godot,sanikoyes/godot,guilhermefelipecgs/godot,BastiaanOlij/godot,sanikoyes/godot,godotengine/godot,josempans/godot,josempans/godot,sanikoyes/godot,sanikoyes/godot,josempans/godot,guilhermefelipecgs/godot,guilhermefelipecgs/godot,pkowal1982/godot,BastiaanOlij/godot,godotengine/godot,BastiaanOlij/godot,vkbsb/godot,BastiaanOlij/godot,guilhermefelipecgs/godot,josempans/godot,pkowal1982/godot,josempans/godot,godotengine/godot,guilhermefelipecgs/godot,guilhermefelipecgs/godot,vkbsb/godot,josempans/godot,pkowal1982/godot,BastiaanOlij/godot,sanikoyes/godot,godotengine/godot,vkbsb/godot,guilhermefelipecgs/godot,godotengine/godot,pkowal1982/godot,josempans/godot,vkbsb/godot,vkbsb/godot,godotengine/godot,pkowal1982/godot,vkbsb/godot,pkowal1982/godot,sanikoyes/godot,vkbsb/godot,pkowal1982/godot,sanikoyes/godot,godotengine/godot,pkowal1982/godot,vkbsb/godot,BastiaanOlij/godot,guilhermefelipecgs/godot,godotengine/godot