Skip to content

Commit

Permalink
Don't reshuffle windows on iconify
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jun 2, 2024
1 parent d32b33d commit 859d535
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions internal/x11/win/frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,15 +462,17 @@ func (f *frame) getInnerWindowCoordinates(w uint16, h uint16) (uint32, uint32, u

func (f *frame) hide() {
stack := f.client.wm.Windows()
for i := len(stack) - 1; i >= 0; i-- {
for i := 0; i < len(stack); i++ {
if stack[i] == (interface{})(f.client).(fynedesk.Window) {
continue
}

if !stack[i].Iconic() {
stack[i].RaiseToTop()
stack[i].Focus()
if stack[i].Iconic() {
continue
}

stack[i].Focus()
break
}

borderWidth := x11.BorderWidth(x11.XWin(f.client))
Expand Down

0 comments on commit 859d535

Please sign in to comment.