You are not logged in.

#1 2013-06-07 00:45:57

Jindur
Member
Registered: 2011-09-29
Posts: 184

[SOLVED] Firefox switches workspace on its own when opening a link

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

#2 2013-06-07 00:57:02

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: [SOLVED] Firefox switches workspace on its own when opening a link

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

#3 2013-06-07 03:26:12

Jindur
Member
Registered: 2011-09-29
Posts: 184

Re: [SOLVED] Firefox switches workspace on its own when opening a link

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();
end

And 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

#4 2013-07-08 22:48:32

Jindur
Member
Registered: 2011-09-29
Posts: 184

Re: [SOLVED] Firefox switches workspace on its own when opening a link

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 none

2) 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 switch

The 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

#5 2013-07-08 22:57:18

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED] Firefox switches workspace on its own when opening a link

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

Board footer

Powered by FluxBB