summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-05-29 12:53:31 +0200
committerAnton Khirnov <anton@khirnov.net>2021-05-29 12:53:31 +0200
commita38a9625cd7c7b897edb9ff98b4f1f8a49779039 (patch)
tree940f46eac598413d2aa1d8b5cc09d03ed9f5a0fa
parent806511cee0aa94eb3b561f51e72df55085104ba5 (diff)
rc: reduce indentation level by early return
-rw-r--r--rc.lua20
1 files changed, 11 insertions, 9 deletions
diff --git a/rc.lua b/rc.lua
index 0404153..e7fb8b6 100644
--- a/rc.lua
+++ b/rc.lua
@@ -151,15 +151,17 @@ client.connect_signal("manage", function (c, startup)
-- Prevent clients from being unreachable
awful.placement.no_offscreen(c)
- if not startup then
- -- Set the windows at the slave,
- -- i.e. put it at the end of others instead of setting it master.
- -- awful.client.setslave(c)
-
- -- Put windows in a smart way, only if they does not set an initial position.
- if not c.size_hints.user_position and not c.size_hints.program_position then
- awful.placement.no_overlap(c)
- end
+ if startup then
+ return
+ end
+
+ -- Set the windows at the slave,
+ -- i.e. put it at the end of others instead of setting it master.
+ -- awful.client.setslave(c)
+
+ -- Put windows in a smart way, only if they does not set an initial position.
+ if not c.size_hints.user_position and not c.size_hints.program_position then
+ awful.placement.no_overlap(c)
end
-- put the client where the mouse is