Revert "shell/window-tracker: Exclude screen recorder window"

This reverts commit 575ba13b9b4efa40f07d57d87d50d8f0466f2e16.

That commit did not actually prevent the "Unknown" application from
showing up in the dash or app switcher when the recorder was running,
but it introduced a problem with Proton which also uses gstreamer OpenGL
elements in its transcoder. This was causing the overview to get stuck
while the transcoder was running due to the app for the
"OpenGL Renderer" window being null.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7042
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3000>
This commit is contained in:
Sebastian Keller 2023-10-30 12:54:21 +01:00
parent fe292ac941
commit bf742c3926

View File

@ -412,13 +412,6 @@ get_app_for_window (ShellWindowTracker *tracker,
if (meta_window_is_remote (window)) if (meta_window_is_remote (window))
return _shell_app_new_for_window (window); return _shell_app_new_for_window (window);
/* HACK: Exclude screen recorder from tracking until
* we implement a proper fix
*/
if (meta_window_get_wm_class (window) == NULL &&
g_strcmp0 (meta_window_get_title (window), "OpenGL Renderer") == 0)
return NULL;
/* Check if the app's WM_CLASS specifies an app; this is /* Check if the app's WM_CLASS specifies an app; this is
* canonical if it does. * canonical if it does.
*/ */