Re: [Sawfish] Keeping the correct focus on desktop switch

[ Thread Index | Date Index | More Archives ]


I did a fast test with it and it seems good and works as advertised.
Thank you.

One minor detail is that there's no fallback if the window is gone that
had the focus last, so if you switch to a workspace and the last focus
window is gone, no window has the focus.

Thanks for the work (I'm still trying to wrap my head around Lisp likes
and I am only slowly getting used to Clojure).

On Tue, 17 Dec 2013 12:27:43 +0100
fuchur <flohtransporter@xxxxxxxxx> wrote:

> Hi,
> On Sun, 15 Dec 2013 11:45:34 +0100
> wrote "Robert 'Bobby' Zenz" <Robert.Zenz@xxxxxxxxxxxxxx>:
> >Thanks for looking.
> >So if I understand that comment right, sticky windows are
> >floating to the top of the window list if they were focused once?
> >That sounds complicated to fix.
> >
> >Personally I wouldn't give sticky windows a different weight in the
> >window ordering/focus order at all, would it be possible to treat
> >them like every other window on the workspace? I think that should
> >solve the problem, but will most likely raise others (actually it
> >sounds like opening a can of worms, to be honest) when
> >switching workspaces with a sticky window focused.
> >
> >Well, let's start simple, here's my opinion on how it should behave:
> >If a non-sticky window is focused, it should obviously lose the focus
> >when switching workspaces and regain the focus after returning to
> >that workspace. If a sticky window is focused, it should keep the
> >focus even when switching workspaces, basically "overwriting" the
> >last focused window on the workspace.
> >
> >Or did I misunderstand something along the way?
> >
> What happened by sticky windows:
> "on-viewport-change" set the order by the window to nil. If you change
> the workspace the sticky window lost the focus and the window in order
> after the sticky window got the focus (if available). This patch
> record the window with the focus on each workspace before you switch
> the workspace and if you reenter the workspace the record window
> (that with the focus) got the focus back (and also the window order
> after the focus window should correct, except a sticky window was
> focused on a other workspace it will raise in the order after the
> (recorded) focus window on the other workspaces ...). But patch need
> more testing.

Sawfish ML

Mail converted by MHonArc 2.6.19+