Skip to content

Instantly share code, notes, and snippets.

@lucasvr
Created November 16, 2016 20:54
Show Gist options
  • Save lucasvr/511f1fd195c84c7eab7c93f79828382f to your computer and use it in GitHub Desktop.
Save lucasvr/511f1fd195c84c7eab7c93f79828382f to your computer and use it in GitHub Desktop.
awesome 2nd monitor patch
--- share/awesome/lib/awful/mouse/init.lua.orig 2016-11-16 13:45:27.567205289 -0200
+++ share/awesome/lib/awful/mouse/init.lua 2016-11-16 13:47:37.239207722 -0200
@@ -257,7 +257,7 @@ mouse.resize.add_enter_callback(function
if c.floating then return end
local l = c.screen.selected_tag and c.screen.selected_tag.layout or nil
- if l == layout.suit.floating then return end
+ if l == layout.suit.floating or l == nil then return end
if l ~= layout.suit.floating and l.mouse_resize_handler then
capi.mousegrabber.stop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment