### Godot version

4.0dev (4fa6edc88)

### System information

Ubuntu 20.04.2 LTS

### Issue description

Panning of the 2D view does not work after attempting to rename node

### Steps to reproduce

1. Open the a scene in the 2D viewing tab
2. Double click to rename any node under the scene tab
3. click into the 2D view directly
4. attempt to pan the view through middle-clicking or using the pan tool

Refocusing the editor window will fix it temporarily

### Minimal reproduction project

[Panning Issue.zip](https://github.com/godotengine/godot/files/10529131/Panning.Issue.zip)

_THREAD_SAFE_METHOD_
#ifdef DISPLAY_SERVER_X11_DEBUG_LOGS_ENABLED
	static int frame = 0;
	++frame;
#endif
	bool ignore_events = mouse_process_popups();
	if (app_focused) {
		
		bool focus_found = false;
		for (const KeyValue<WindowID, WindowData> &E : windows) {
			if (E.value.focused) {
				focus_found = true;
				break;
			}
		}
		if (!focus_found) {
			uint64_t delta = OS::get_singleton()->get_ticks_msec() - time_since_no_focus;
			if (delta > 250) {
				
				if (OS::get_singleton()->get_main_loop()) {
					DEBUG_LOG_X11("All focus lost, triggering NOTIFICATION_APPLICATION_FOCUS_OUT\n");
					OS::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_APPLICATION_FOCUS_OUT);
				}
				app_focused = false;