Cycles, setting other viewport shade mode

When Cycles does it’s job, and I want to set another shade mode by the viewport menu, the result is something.
But not what I wanted.

I only click the arrow in the viewport title.
Then the menu magically closes, and one mode is selected.
Most times wireframe.

Seems only to happen when the viewport is maximized.
When the described effect happens, the viewport is also no longer maximized.

The problem is known, but the solution to it remains elusive.

For now the best way to get around this is to press LMB, hold and move to the mode you want. Only then release. That should work most of the time.

The problem is most apparent when the GPU used for Raytraced is also the display adapter. Similarly the color picker has troubles appearing in this configuration, FYI.