blob: 5b1bd400bdff21dc5fa27dad86c288c8ad306af1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
local awful = require("awful")
-- Signal function to execute when a new client appears.
client.connect_signal("manage", function (c)
-- Set the windows at the slave,
-- i.e. put it at the end of others instead of setting it master.
if not awesome.startup then
awful.client.setslave(c)
end
if awesome.startup and not c.size_hints.user_position and not c.size_hints.program_position then
-- Prevent clients from being unreachable after screen count changes.
awful.placement.no_offscreen(c)
end
end)
|