When pressing Alt-Tab with no active windows, the tabswitcher window still appears. No icons are displayed and the window title is either blank, or the last window selected via alt-tab. It appears this is due to the window being set to show on the keypress regardless of the number of active children.
This PR would address this by making the "get_visible_children" public so the DBus function can check if there are items in the tabswitcher window before showing the window. Since this function already takes into consideration the "Show all windows in tab switcher" setting in BDS, it ensures the tab switcher will still work correctly with this setting on or off.
Closes #578
Submitter Checklist
[x] Squashed commits with git rebase -i (if needed)
[x] Built budgie-desktop and verified that the patch worked (if needed)
Description
When pressing Alt-Tab with no active windows, the tabswitcher window still appears. No icons are displayed and the window title is either blank, or the last window selected via alt-tab. It appears this is due to the window being set to show on the keypress regardless of the number of active children.
This PR would address this by making the "get_visible_children" public so the DBus function can check if there are items in the tabswitcher window before showing the window. Since this function already takes into consideration the "Show all windows in tab switcher" setting in BDS, it ensures the tab switcher will still work correctly with this setting on or off.
Closes #578
Submitter Checklist
git rebase -i
(if needed)