You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When unpinned apps are set to be shown only when they match the current workspace, some of them fail to show at all. Apparently, Dock.window_added can be called before wnck can tell that the window exists and which workspace is it assigned to.
One possible, yet terribly dirty fix is to make DockedApp.has_windows_on_workspace broader, so it matches not only "windows assigned to wnck_workspace" but "windows that are not assigned to any other workspace" as well. However, I hope that this issue can be resolved in some more fitted way, as this (not-really-a-)suggestion is likely to break some other cases.
`
def has_windows_on_workspace(self, wnck_workspace):
""" test whether the app has at least one window open on a specified
workspace
Args:
wnck_workspace - the workspace to check for
Returns:
boolean
"""
other = False
for win in self.get_windows():
wnck_win = Wnck.Window.get(win.get_xid())
if wnck_win is not None:
win_ws = wnck_win.get_workspace()
if win_ws == wnck_workspace:
return True
else:
other = True
return not other
`
The text was updated successfully, but these errors were encountered:
When unpinned apps are set to be shown only when they match the current workspace, some of them fail to show at all. Apparently, Dock.window_added can be called before wnck can tell that the window exists and which workspace is it assigned to.
One possible, yet terribly dirty fix is to make DockedApp.has_windows_on_workspace broader, so it matches not only "windows assigned to wnck_workspace" but "windows that are not assigned to any other workspace" as well. However, I hope that this issue can be resolved in some more fitted way, as this (not-really-a-)suggestion is likely to break some other cases.
`
`
The text was updated successfully, but these errors were encountered: