From 630c7b1aa1a6386e51a7b0a292fe6b274f63bfd6 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 31 Aug 2010 00:41:27 +0200 Subject: awesome: move/resize: always focus and raise clients --- .config/awesome/awesome.lua | 8 +++++--- 1 file 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 }) -- cgit