From 7a273778d85829ff9a546dbc95699e6348a9a93e Mon Sep 17 00:00:00 2001 From: Rastislav Barlik Date: Sun, 27 May 2018 20:34:53 +0100 Subject: [PATCH] Add test for window factor on maximized clients --- tests/test-awful-client.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/test-awful-client.lua b/tests/test-awful-client.lua index c2b6fed65..92c423ff4 100644 --- a/tests/test-awful-client.lua +++ b/tests/test-awful-client.lua @@ -105,6 +105,25 @@ local steps = { return true end, + + -- Ensure that window factor is ignored on maximized clients + function() + local c = client.get()[1] + assert(c ~= nil) + + local signal_count = 0 + c:connect_signal("property::windowfact", function() + signal_count = signal_count + 1 + end) + + c.maximized = true + + awful.client.incwfact(0.1, c) + awful.client.setwfact(0.5, c) + assert(signal_count == 0) + + return true + end, } local original_count, c1, c2 = 0