You are not logged in.
I'm on Xfce4.
I have this extremely annoying problem that Firefox is set to Workspace #3, but everytime I open a link in another application Firefox will move its whole Window to that application's workspace so I have to drag it back to #3 manually. What was pretty weird is that Google did not give me any solutions, so I hope someone here might know how to fix this.
(I use devilspie to make it open on workspace #3 intially.)
SOLUTION: See my reply further below with the xfconf-query commands.
Last edited by Jindur (2013-07-08 22:49:52)
Offline
Jindur,
I add similar problems, but it was long ago and do not remember the details.
For me, things started working much better since I started using devilspie2, which is in the AUR.
Configuration is different but easy to learn.
Mektub
Follow me on twitter: https://twitter.com/johnbina
Offline
Thanks, I installed devilspie2. It seems to me that it simply uses LUA instead of the old script format, but I did not see any new commands that assist in keeping a window tucked to a specific workspace in the manual.
So I made a script as usual
if (get_application_name()=="Firefox") then
set_window_workspace(3);
maximize();
endAnd it places the FF window to workspace 3 initially, as devilspie did, but when I open a link it will still cause FF to switch workspace to the workspace of the application that called the link to be opened.
Could you maybe elaborate how you solved this with devilspie2? Maybe post an example LUA script you are using?
Last edited by Jindur (2013-06-07 03:26:26)
Offline
Finally solved it.
Devilspie does nothing. It's a matter of X behaviour.
The following two ways are there to fix it:
1) This will open the link you clicked quietly in Firefox on its possibly completely different workspace.
xfconf-query -c xfwm4 -p /general/activate_action -s none2) This instead will open the link in Firefox and switch to the workspace Firefox is on.
xfconf-query -c xfwm4 -p /general/activate_action -s switchThe default behaviour of 'activate_action' is 'bring', which was the reason why X moves Firefox to your current workspace when you click a link, no matter what devilspie etc say.
Offline
That is not x, but xfce/xfwm behaviour, the graphical configuration is located in Settings->Windows Manager Tweaks->Focus (When a window raises itself)
Last edited by progandy (2013-07-08 22:57:35)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline