signals: raise newly created windows

This commit is contained in:
Vincent Bernat 2012-09-26 15:05:47 +02:00
parent c4312820ab
commit b601e48d6a

View file

@ -53,13 +53,14 @@ client.add_signal("manage",
c.icon = image(icon) c.icon = image(icon)
end end
end end
if not startup then if not startup then
-- Put windows in a smart way, only if they does not set an initial position. -- 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 if not c.size_hints.user_position and not c.size_hints.program_position then
awful.placement.no_overlap(c) awful.placement.no_overlap(c)
awful.placement.no_offscreen(c) awful.placement.no_offscreen(c)
end end
c:raise()
end end
end) end)