From d88bf7cdf19477afa68e29a4b840849d208dee52 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 27 May 2020 18:51:03 +0100 Subject: [PATCH] [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 --- main_wayland.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main_wayland.cpp b/main_wayland.cpp index 11fa4d570d..0623cba52b 100644 --- a/main_wayland.cpp +++ b/main_wayland.cpp @@ -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; }