Comment 6 for bug 1535397

Revision history for this message
Chris Halse Rogers (raof) wrote : Re: [enhancement] Implement support for QWindow::visibility set to Automatic

I remain unconvinced that this needs anything to be implemented in Mir at all.

This appears to be a Qt-specific API that can be implemented entirely in the client-side QPA - the QPA needs to know whether the client wants automatic state anyway, knows the form-factor the surface is on, receives events when form-factor changes, and can set the appropriate state.

Since this is a Qt-specific API it seems reasonable for the Qt-specific code to implement it.

What this doesn't allow is for the shell to determine what “default” means, but given the API is just “something selects between fullscreen and windowed” it doesn't really allow the shell much lattitude anyway.