Don't try to track remote windows
Previously we were trying to match up remote windows with local .desktop files, which is definitely wrong. This patch simply falls back to the app-from-window case for this; better handling would need design. https://bugzilla.gnome.org/show_bug.cgi?id=620855
This commit is contained in:
parent
68bc5baf12
commit
8aeadcdf9a
@ -259,10 +259,8 @@ window_is_tracked (MetaWindow *window)
|
|||||||
gboolean
|
gboolean
|
||||||
shell_window_tracker_is_window_interesting (MetaWindow *window)
|
shell_window_tracker_is_window_interesting (MetaWindow *window)
|
||||||
{
|
{
|
||||||
if (!window_is_tracked (window))
|
if (meta_window_is_override_redirect (window)
|
||||||
return FALSE;
|
|| meta_window_is_skip_taskbar (window))
|
||||||
|
|
||||||
if (meta_window_is_skip_taskbar (window))
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
switch (meta_window_get_window_type (window))
|
switch (meta_window_get_window_type (window))
|
||||||
@ -396,6 +394,9 @@ get_app_for_window (ShellWindowTracker *monitor,
|
|||||||
ShellApp *result;
|
ShellApp *result;
|
||||||
const char *startup_id;
|
const char *startup_id;
|
||||||
|
|
||||||
|
if (meta_window_is_remote (window))
|
||||||
|
return shell_app_system_get_app_for_window (shell_app_system_get_default (), window);
|
||||||
|
|
||||||
result = NULL;
|
result = NULL;
|
||||||
/* First, we check whether we already know about this window,
|
/* First, we check whether we already know about this window,
|
||||||
* if so, just return that.
|
* if so, just return that.
|
||||||
|
Loading…
Reference in New Issue
Block a user