Skip to content

Commit 9029991

Browse files
author
Marcel Arpogaus
committed
Revert "improves handling of untagged clients (i.e. when screen is removed)"
This reverts commit c6833f0.
1 parent c6833f0 commit 9029991

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

rc/behavior/default/signals.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
-- @Author : Marcel Arpogaus <marcel dot arpogaus at gmail dot com>
44
--
55
-- @Created: 2021-02-03 16:02:46 (Marcel Arpogaus)
6-
-- @Changed: 2021-02-10 08:21:28 (Marcel Arpogaus)
6+
-- @Changed: 2021-02-04 09:36:26 (Marcel Arpogaus)
77
-- [ description ] -------------------------------------------------------------
88
-- ...
99
-- [ license ] -----------------------------------------------------------------
@@ -31,7 +31,6 @@ module.init = function(_)
3131
return {
3232
-- Signal function to execute when a new client appears.
3333
client = {
34-
['untagged'] = function(c) c:emit_signal('manage') end,
3534
['manage'] = function(c)
3635
-- Set the windows at the slave,
3736
-- i.e. put it at the end of others instead of setting it master.

rc/behavior/dynamic_tags/rules.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
-- @Author : Marcel Arpogaus <marcel dot arpogaus at gmail dot com>
44
--
55
-- @Created: 2021-02-03 17:41:25 (Marcel Arpogaus)
6-
-- @Changed: 2021-02-10 08:20:28 (Marcel Arpogaus)
6+
-- @Changed: 2021-02-06 13:11:38 (Marcel Arpogaus)
77
-- [ description ] -------------------------------------------------------------
88
-- ...
99
-- [ license ] -----------------------------------------------------------------

rc/key_bindings/default/actions.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
-- @Author : Marcel Arpogaus <marcel dot arpogaus at gmail dot com>
44
--
55
-- @Created: 2021-01-27 11:14:55 (Marcel Arpogaus)
6-
-- @Changed: 2021-02-10 08:15:14 (Marcel Arpogaus)
6+
-- @Changed: 2021-02-09 18:07:29 (Marcel Arpogaus)
77
-- [ description ] -------------------------------------------------------------
88
-- ...
99
-- [ license ] -----------------------------------------------------------------
@@ -151,7 +151,7 @@ module.init = function(config, mainmenu)
151151
end,
152152
['move to screen'] = function(c)
153153
c:move_to_screen()
154-
c:emit_signal('manage')
154+
c:emit_signal('manage', 'key.movetoscreen', {})
155155
c:emit_signal('request::activate', 'key.movetoscreen',
156156
{raise = true})
157157
end,

rc/screen/init.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,15 @@ module.init = function(
125125
collectgarbage()
126126
end
127127

128+
s.move_all_clients = function()
129+
for _, c in pairs(s:get_all_clients()) do
130+
c:move_to_screen()
131+
c:emit_signal('manage', 'screen', {})
132+
end
133+
end
134+
128135
s:connect_signal('removed', s.reset)
136+
s:connect_signal('removed', s.move_all_clients)
129137
end
130138
awful.screen.connect_for_each_screen(update_screen)
131139
end

0 commit comments

Comments
 (0)