mirror of
https://github.com/elenapan/dotfiles.git
synced 2025-12-26 15:14:58 +08:00
Disconnect from some dock related signals when a screen is removed
This commit is contained in:
parent
f2730f5565
commit
afcfbb50e5
1 changed files with 6 additions and 0 deletions
|
|
@ -160,6 +160,12 @@ awful.screen.connect_for_each_screen(function(s)
|
|||
client.connect_signal("unfocus", no_dock_activator_ontop)
|
||||
client.connect_signal("property::fullscreen", no_dock_activator_ontop)
|
||||
|
||||
s:connect_signal("removed", function (s)
|
||||
client.disconnect_signal("focus", no_dock_activator_ontop)
|
||||
client.disconnect_signal("unfocus", no_dock_activator_ontop)
|
||||
client.disconnect_signal("property::fullscreen", no_dock_activator_ontop)
|
||||
end)
|
||||
|
||||
s.dock_activator:buttons(
|
||||
gears.table.join(
|
||||
awful.button({ }, 4, function ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue