all toolbars gone, had to bring all of them back manually
That is a "feature" that I've observed a few times already, it seems to be associated with clicking somewhere on the tab bar more than once. Or something.
Apparently someone thought that it would be a "cool feature" to have Code::Blocks switch to "compact mode" then. At least that's what happens regularly with my 3-4 month old build.
This happens if you doubleclick on an editor tab with the left mouse-button.
Doubleclicking again switches back to the former perspective.
The minimized perspective can be configured as all other perspectives, too.
It's a feature I use a lot, especially if I work on two (or more) files at the same time and need the whole width of my monitor (even if it is 1920x1600).
In the same way, someone apparently deemed it a good idea too secretly move the keyboard focus elsewhere if the mouse is over any other pane than the editor. Having the result that if you move the mouse out of the way, you can't type...
This can happen on windows, if you hover the mouse over a tab (only way to fetch the mouse-wheel event on windows), if you leave the tab the former focuse should be restored.
... or if you use the dragscroll-plugin and have "Focus follows mouse" (or something like this) switched on.