Re: Keeping the correct focus on desktop switch

fuchur <[email protected]>
Newsgroups gmane.comp.window-managers.sawfish
Organization W.W
Message-ID <[email protected]>
Hi,

On Tue, 10 Dec 2013 00:22:28 +0100
wrote fuchur <[email protected]>:

>Hi,
>
>On Tue, 10 Dec 2013 00:01:24 +0100
>wrote "Robert 'Bobby' Zenz" <[email protected]>:
>
>>Thank you for testing, I feared such a thing...I'll test my
>>configuration and see what I can come up with.
>>
>>Thank you very much.
>>
>>On Mon, 9 Dec 2013 23:55:41 +0100
>>fuchur <[email protected]> wrote:
>>
>>> Hi,
>>> 
>>> On Mon, 9 Dec 2013 23:17:24 +0100
>>> wrote "Robert 'Bobby' Zenz" <[email protected]>:
>>> 
>>> >Hello everyone.
>>> >
>>> >I'm using two monitors with Sawfish and MATE and the second monitor
>>> >is mostly occupied by stickied chat applications. Now in the last
>>> >time I've noticed that whenever I switch workspaces that the focus
>>> >jumps onto the second monitor, despite that a window on the first
>>> >one was focused.
>>> >
>>> >Assume the following:
>>> >
>>> > * Desktop 1:
>>> >   * Monitor 1: Browser
>>> >   * Monitor 2: Stickied applications
>>> > * Desktop 2:
>>> >   * Monitor 1: E-Mail client
>>> >   * Monitor 2: Stickied applications
>>> >
>>> >Now if the browser has the focus and I switch to desktop 2, the
>>> >stickied application get's the focus. Now I focus manually the e-mail
>>> >client and switch back to desktop 1...the stickied application has
>>> >the focus again.
>>> >
>>> >Did I break something in my configuration or is it supposed to be
>>> >that way?
>>> >
>>> >Best Regards,
>>> >Bobby.
>>> >
>>> 
>>> I have do a short test on my system (two monitors xinerama with kde)
>>> and it works perfect here. All windows got the currect focus (with
>>> stick or without sticky windows). If i switch the workspace the window
>>> that has the focus as i leave the workspace got the focus if i go back
>>> to the workspace. 
>>> 
>>> Maybe something wrong with your configuration?
>>> 
>>
>>
>
>Ok, my info was wrong. I also lost the focus if i select a sticky
>window and switch the workspace. I do more test in the next days and
>try to fix this ...
>

I have try to fix the focus lost if you have a sticky window(s) and you
change the workspace. But i have no idea how.

Read the comment by "(define (on-viewport-change)" in
"/usr/share/sawfish/lisp/window-order.jl" and you understand why we
lost the focus.


-- 
Regards,
Fuchur

GPG Fingerprint: CA3B 8204 5B3E 6D48 6D53  C116 E5BC 70D5 B8D7 B2B0
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlKs78QACgkQ5bxw1bjXsrBuywCdHECDcwys1xDxQUSGwGlwXCMe
zhAAn3/1KDviusrg7EmljJtr+11b3Jhw
=dc2z
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.