// Use client geometry if set explicitly, use available screen geometry otherwise.
d->geometry = window()->geometry() != screen->geometry() ? window()->geometry() : screen->availableGeometry();
I would also move that to inside createWindow(), more specifically to here:
// Use client geometry if set explicitly, use available screen geometry otherwise. )->geometry( ) != screen->geometry() ?
window( )->geometry( ) : screen- >availableGeome try();
d->geometry = window(
I would also move that to inside createWindow(), more specifically to here:
} else {
printf( "UbuntuWindow - regular geometry\n");
geometry. setY(d- >panelHeight) ;
geometry = d->geometry;
}