Only show tasks from the current desktop on Plasma

Solution 1:

Right click on any task in the taskbar. Left click on Task Manager Settings... Scroll to the bottom of the first tab called General The second option under Filters is Show only tasks from the current desktop. Click this. Click Apply button Click Ok button