Skip to content

Commit

Permalink
Revert "improves handling of untagged clients (i.e. when screen is re…
Browse files Browse the repository at this point in the history
…moved)"

This reverts commit c6833f0.
  • Loading branch information
Marcel Arpogaus committed Apr 3, 2021
1 parent c6833f0 commit 9029991
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
3 changes: 1 addition & 2 deletions rc/behavior/default/signals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- @Author : Marcel Arpogaus <marcel dot arpogaus at gmail dot com>
--
-- @Created: 2021-02-03 16:02:46 (Marcel Arpogaus)
-- @Changed: 2021-02-10 08:21:28 (Marcel Arpogaus)
-- @Changed: 2021-02-04 09:36:26 (Marcel Arpogaus)
-- [ description ] -------------------------------------------------------------
-- ...
-- [ license ] -----------------------------------------------------------------
Expand Down Expand Up @@ -31,7 +31,6 @@ module.init = function(_)
return {
-- Signal function to execute when a new client appears.
client = {
['untagged'] = function(c) c:emit_signal('manage') end,
['manage'] = function(c)
-- Set the windows at the slave,
-- i.e. put it at the end of others instead of setting it master.
Expand Down
2 changes: 1 addition & 1 deletion rc/behavior/dynamic_tags/rules.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- @Author : Marcel Arpogaus <marcel dot arpogaus at gmail dot com>
--
-- @Created: 2021-02-03 17:41:25 (Marcel Arpogaus)
-- @Changed: 2021-02-10 08:20:28 (Marcel Arpogaus)
-- @Changed: 2021-02-06 13:11:38 (Marcel Arpogaus)
-- [ description ] -------------------------------------------------------------
-- ...
-- [ license ] -----------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions rc/key_bindings/default/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- @Author : Marcel Arpogaus <marcel dot arpogaus at gmail dot com>
--
-- @Created: 2021-01-27 11:14:55 (Marcel Arpogaus)
-- @Changed: 2021-02-10 08:15:14 (Marcel Arpogaus)
-- @Changed: 2021-02-09 18:07:29 (Marcel Arpogaus)
-- [ description ] -------------------------------------------------------------
-- ...
-- [ license ] -----------------------------------------------------------------
Expand Down Expand Up @@ -151,7 +151,7 @@ module.init = function(config, mainmenu)
end,
['move to screen'] = function(c)
c:move_to_screen()
c:emit_signal('manage')
c:emit_signal('manage', 'key.movetoscreen', {})
c:emit_signal('request::activate', 'key.movetoscreen',
{raise = true})
end,
Expand Down
8 changes: 8 additions & 0 deletions rc/screen/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,15 @@ module.init = function(
collectgarbage()
end

s.move_all_clients = function()
for _, c in pairs(s:get_all_clients()) do
c:move_to_screen()
c:emit_signal('manage', 'screen', {})
end
end

s:connect_signal('removed', s.reset)
s:connect_signal('removed', s.move_all_clients)
end
awful.screen.connect_for_each_screen(update_screen)
end
Expand Down

0 comments on commit 9029991

Please sign in to comment.