Added
Link Here
|
1 |
--- lib/awful/rules.lua.in |
2 |
+++ lib/awful/rules.lua.in |
3 |
@@ -89,7 +89,9 @@ end |
4 |
|
5 |
--- Apply rules to a client. |
6 |
-- @param c The client. |
7 |
-function apply(c) |
8 |
+-- @param startup Executed at startup ? (optional, default is false) |
9 |
+function apply(c, startup) |
10 |
+ startup = startup or false |
11 |
local props = {} |
12 |
local callbacks = {} |
13 |
for _, entry in ipairs(rules) do |
14 |
@@ -129,6 +131,9 @@ function apply(c) |
15 |
callback(c) |
16 |
end |
17 |
|
18 |
+ -- Apply tags. |
19 |
+ atag.withcurrent(c, startup) |
20 |
+ |
21 |
-- Do this at last so we do not erase things done by the focus |
22 |
-- signal. |
23 |
if props.focus then |