Skip to content

Commit

Permalink
Include pinned windows in the switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jun 11, 2024
1 parent f1add32 commit 08403b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/ui/switcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (s *Switcher) loadIcons(list []fynedesk.Window) []fyne.CanvasObject {
var ret []fyne.CanvasObject

for _, item := range list {
if item.Desktop() != fynedesk.Instance().Desktop() {
if item.Desktop() != fynedesk.Instance().Desktop() && !item.Pinned() {
continue
}
ret = append(ret, newSwitchIcon(s, item))
Expand Down
2 changes: 1 addition & 1 deletion internal/x11/wm/switcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (x *x11WM) previousAppSwitcher() {
func (x *x11WM) showOrSelectAppSwitcher(reverse bool) {
var visible []fynedesk.Window
for _, win := range x.clients {
if win.Desktop() == fynedesk.Instance().Desktop() && !win.Iconic() {
if win.Desktop() == fynedesk.Instance().Desktop() || win.Pinned() {
visible = append(visible, win)
}
}
Expand Down

0 comments on commit 08403b0

Please sign in to comment.