Yes, something broke, but you’re the one who broke it, and you can also fix it again.
Here’s the thing… What you call the task bar isn’t a task bar; it’s a panel. Plasma allows you to have multiple panels, or none at all ─ whatever you wish. Panels can hold icons and widgets ─ so-called plasmoids.
One of these widgets is a task manager widget ─ there are alternatives too, but I’ll get into that in a minute. So, what happened is that when you were moving stuff around, you may have accidentally deleted the task manager widget, or you may have moved it off of the panel and onto the desktop, where it is now invisible because the panel is covering it.
Here’s what you should do… Right-click the desktop and choose “Enter Edit Mode”. Then, right-click the panel and choose “Edit Panel”. Now, temporarily, just so as to see whether you’ve moved the task manager off of the panel and onto the desktop, drag your panel to the top of the screen ─ or to the bottom of the screen if it was at the top already ─ or to either the left or right edge. If the task manager is indeed on the desktop, then you should now be able to see it, and delete it (by right-clicking it and choosing “Remove Widget”).
If the task manager is not there, then you can put your panel back where it used to be, and then you right-click the panel again and choose “Add Widgets”. You will then see a list of available widgets on the left side of the screen. Choose one of the available task managers ─ there’s a conventional one which shows the name of the running application, and there’s an icons-only one, which only shows the icons ─ and drag it to the position on the panel where you want it.
When you’re done, don’t forget to exit the edit mode by right-clicking the desktop again and choosing the appropriate option.
Many thanks Aragorn, that fixed it straight away.
The task manager has a separate icon for every task now - before it used to stack similar items under 1 icon. But that is a small point - you have solved the problem.
Many thanks again Aragorn.
Right-click the task manager and choose “More Actions”. At the bottom of the new popup menu, you will see an option to configure the task manager. If you click that, you get a configuration screen. Click on “Behavior” in that screen, and then you can select whether you want to group windows together or not.