Commit d88bf7cd authored by David Edmundson's avatar David Edmundson Committed by David Edmundson
Browse files

[wayland] Allow nested mode to have a fractional scale < 1

The bug reporter presents a use case of wanting to run a game and scale
down the result.

For everyone else kwin_wayland nested is just a test tool, so I don't
see any disadvantages.

It could be useful in testing.

BUG: 422141
parent 5c3e0325
......@@ -609,7 +609,7 @@ int main(int argc, char * argv[])
return 1;
}
const qreal scale = parser.value(scaleOption).toDouble(&ok);
if (!ok || scale < 1) {
if (!ok || scale <= 0) {
std::cerr << "FATAL ERROR incorrect value for scale" << std::endl;
return 1;
}
......
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