diff options
author | ben <benjaminfranzke@googlemail.com> | 2010-08-31 00:41:27 +0200 |
---|---|---|
committer | ben <benjaminfranzke@googlemail.com> | 2010-08-31 00:41:27 +0200 |
commit | 630c7b1aa1a6386e51a7b0a292fe6b274f63bfd6 (patch) | |
tree | 6526deee154ba5fc79df1e8d5f9402f6df461994 /.config/awesome | |
parent | 859b110f3b419409010d36793480442b32d9bd19 (diff) | |
download | dotfiles-630c7b1aa1a6386e51a7b0a292fe6b274f63bfd6.tar.gz dotfiles-630c7b1aa1a6386e51a7b0a292fe6b274f63bfd6.tar.bz2 dotfiles-630c7b1aa1a6386e51a7b0a292fe6b274f63bfd6.zip |
awesome: move/resize: always focus and raise clients
Diffstat (limited to '.config/awesome')
-rw-r--r-- | .config/awesome/awesome.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.config/awesome/awesome.lua b/.config/awesome/awesome.lua index 64c1f48..bd7fa24 100644 --- a/.config/awesome/awesome.lua +++ b/.config/awesome/awesome.lua @@ -305,9 +305,8 @@ end clientbuttons = awful.util.table.join( awful.button({ }, 1, function (c) client.focus = c; c:raise() end), - awful.button({ modkey }, 1, awful.mouse.client.move), - awful.button({ modkey }, 3, awful.mouse.client.resize), - + awful.button({ modkey }, 1, function(c) client.focus=c; c:raise(); awful.mouse.client.move(c); end), + awful.button({ modkey }, 3, function(c) client.focus=c; c:raise(); awful.mouse.client.resize(c) end), awful.button({ modkey }, 2, function(c) c:kill() end) ) @@ -339,6 +338,9 @@ awful.rules.rules = { -- {{{ Signals -- Signal function to execute when a new client appears. client.add_signal("manage", function (c, startup) + -- Give Client focus when entering a screen + c:add_signal("property::screen", function(c) client.focus = c end) + -- Add a titlebar -- awful.titlebar.add(c, { modkey = modkey }) |