Panel hack refactoring was to ensure the hack was applied at UbuntuWindow creation in a correct fashion.
The issue I found with the old hack was if window was created in fullscreen state, with y=0, then
if (state == Qt::WindowFullScreen && geometry().y() != 0) {
was not entered, but
} else if (geometry().y() == 0) {
was. So fullscreen surface got the panel hack applied.
I fixed it here as I was testing widget-based apps which did this.
Panel hack refactoring was to ensure the hack was applied at UbuntuWindow creation in a correct fashion.
The issue I found with the old hack was if window was created in fullscreen state, with y=0, then creen && geometry().y() != 0) {
if (state == Qt::WindowFullS
was not entered, but
} else if (geometry().y() == 0) {
was. So fullscreen surface got the panel hack applied.
I fixed it here as I was testing widget-based apps which did this.