Fix dropped XEvents early in main window lifetime.
Fix dropped XEvents early in main window lifetime.

The DisplayServerX11 constructor processes pending events shortly
after constructing the main window. However, it discards pending events
on the event queue that it is not interested in. This results in these
events never making it to the main events thread and as a result are
never processed. We need to save the events we don't handle in
DisplayServerX11 so that they can be resent for later handling by the
events thread.

firefly2442/godot,guilhermefelipecgs/godot,godotengine/godot,BastiaanOlij/godot,pkowal1982/godot,BastiaanOlij/godot,guilhermefelipecgs/godot,josempans/godot,firefly2442/godot,vkbsb/godot,josempans/godot,pkowal1982/godot,vkbsb/godot,ZuBsPaCe/godot,sanikoyes/godot,pkowal1982/godot,ZuBsPaCe/godot,josempans/godot,guilhermefelipecgs/godot,Shockblast/godot,sanikoyes/godot,sanikoyes/godot,ZuBsPaCe/godot,ZuBsPaCe/godot,BastiaanOlij/godot,firefly2442/godot,ZuBsPaCe/godot,vkbsb/godot,godotengine/godot,guilhermefelipecgs/godot,vkbsb/godot,sanikoyes/godot,godotengine/godot,josempans/godot,godotengine/godot,godotengine/godot,sanikoyes/godot,Shockblast/godot,ZuBsPaCe/godot,vkbsb/godot,ZuBsPaCe/godot,guilhermefelipecgs/godot,godotengine/godot,firefly2442/godot,ZuBsPaCe/godot,guilhermefelipecgs/godot,Shockblast/godot,josempans/godot,BastiaanOlij/godot,firefly2442/godot,Shockblast/godot,Shockblast/godot,vkbsb/godot,BastiaanOlij/godot,godotengine/godot,sanikoyes/godot,pkowal1982/godot,vkbsb/godot,sanikoyes/godot,firefly2442/godot,pkowal1982/godot,Shockblast/godot,godotengine/godot,sanikoyes/godot,pkowal1982/godot,Shockblast/godot,firefly2442/godot,BastiaanOlij/godot,pkowal1982/godot,BastiaanOlij/godot,vkbsb/godot,josempans/godot,pkowal1982/godot,josempans/godot,josempans/godot,Shockblast/godot,guilhermefelipecgs/godot,BastiaanOlij/godot,firefly2442/godot,guilhermefelipecgs/godot