Merge pull request #955 from Elv13/fix_multiscreen

mouse: Fix moving clients between screens
This commit is contained in:
Emmanuel Lepage Vallée 2016-06-06 06:35:28 -04:00
commit 7da51d7c33
1 changed files with 5 additions and 0 deletions

View File

@ -255,6 +255,11 @@ function layout.move_handler(c, context, hints) --luacheck: no unused args
-- Quit if it isn't a mouse.move on a tiled layout, that's handled elsewhere
if c.floating then return end
if context ~= "mouse.move" then return end
if capi.mouse.screen ~= c.screen then
c.screen = capi.mouse.screen
end
local l = c.screen.selected_tag and c.screen.selected_tag.layout or nil
if l == layout.suit.floating then return end