diff options
author | Nguyễn Gia Phong <vn.mcsinyx@gmail.com> | 2019-03-10 14:12:34 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <vn.mcsinyx@gmail.com> | 2019-03-10 14:12:34 +0700 |
commit | 63aa1e7bdc67222bb50ca6029a6d5019c0cb7d4f (patch) | |
tree | 80e667fd3e66b01ec56cb0370d743a7afc7e2385 /awesome | |
parent | 309f4c7e9178568e3c16694b2bc44a89d288b586 (diff) | |
download | dotfiles-63aa1e7bdc67222bb50ca6029a6d5019c0cb7d4f.tar.gz |
Update 2019-03-10
Diffstat (limited to 'awesome')
-rw-r--r-- | awesome/.config/awesome/rc.lua | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index 5578dbc..bc67455 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -515,6 +515,7 @@ local globalkeys = awful.util.table.join( local clientkeys = awful.util.table.join( awful.key({modkey}, "f", function (c) + awful.titlebar.show(c) c.fullscreen = not c.fullscreen c:raise() end, @@ -723,8 +724,7 @@ client.connect_signal( -- Show titlebar if client is floating, hide otherwise. if not c.floating and - awful.screen.focused().selected_tag.layout ~= - awful.layout.suit.floating then + awful.layout.get(c.screen) ~= awful.layout.suit.floating then awful.titlebar.hide(c) end end @@ -734,11 +734,8 @@ client.connect_signal( client.connect_signal( "property::floating", function (c) - if c.first_tag == nil then - end if c.floating or - (c.first_tag ~= nil and - c.first_tag.layout == awful.layout.suit.floating) then + awful.layout.get(c.screen) == awful.layout.suit.floating then awful.titlebar.show(c) else awful.titlebar.hide(c) |