Просмотр исходного кода

Wayland: check for suspended flag when unsuspending

Before, we would only check for the frame flag, which is unreliable on
newer suspension-aware compositors.
Riteo 1 год назад
Родитель
Сommit
84f26a629d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      platform/linuxbsd/wayland/display_server_wayland.cpp

+ 1 - 1
platform/linuxbsd/wayland/display_server_wayland.cpp

@@ -1238,7 +1238,7 @@ void DisplayServerWayland::process_events() {
 		} else {
 			try_suspend();
 		}
-	} else if (wayland_thread.get_reset_frame()) {
+	} else if (!wayland_thread.is_suspended() || wayland_thread.get_reset_frame()) {
 		// At last, a sign of life! We're no longer suspended.
 		suspended = false;
 	}