Ubuntu – Switch windows only in current workspace and display

compizdisplayworkspacesxfce

I have recently acquired a second display for use with my laptop running Ubuntu with xfce and compiz.

However, one thing that has been bugging me is window switching: my second monitor has some windows open which would usually be on a 2nd workspace.

Now, when I switch windows, I will accidentally switch to one of the other windows on the 2nd display which is kind of annoying.

How do I fix this issue?

Best Answer

I'm not sure about Unity or XFCE, but fully customizable desktop switching is one of the many reasons I choose to run KDE (Kubuntu).

In KDE to limit task switching to the current screen do the following:

  • Press Alt+F2 and type task switcher and then select Task Switcher from the drop-down list.

  • Inside the task switcher control panel's main tab there is a section called Filter windows by.

  • Select the check box for Virtual Desktops, Activities, and Screens, and select the Current activity option for each.

  • Press Apply, and verify things work as expected before closing.


Note: You can also find "Task Switcher" by doing the following:

  • click on the Kick Off menu

    -- Navigate to the Computer tab

  • click on the System Settings menu

    -- Under the Workspace Appearance and Behavior section choose Window Behavior


Related: What is a activity in KDE and what can I do with it?