Commit c3a97ce9 authored by Pekka Vuorela's avatar Pekka Vuorela

Use fullscreen by default

Assuming used in, well, finger usable mobile devices where fullscreen
makes most sense.
parent 5fc1d995
......@@ -157,13 +157,14 @@ int main(int argc, char *argv[])
QObject::connect(&term,SIGNAL(displayBufferChanged()),win,SLOT(displayBufferChanged()));
QObject::connect(view.engine(),SIGNAL(quit()),&app,SLOT(quit()));
QSize screenSize = QGuiApplication::primaryScreen()->size();
if ((screenSize.width() < 1024 || screenSize.height() < 768 || app.arguments().contains("-fs"))
&& !app.arguments().contains("-nofs"))
{
if (!app.arguments().contains("-nofs")) {
view.showFullScreen();
} else
} else {
QSize screenSize = QGuiApplication::primaryScreen()->size();
view.setWidth(screenSize.width() / 2);
view.setHeight(screenSize.height() / 2);
view.show();
}
PtyIFace ptyiface(pid, socketM, &term,
settings->value("terminal/charset").toString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment