mouse.resize: Allow resize across screens (FS#1059)
No clue why this code is here, but it only allowed floating clients to be resized beyond the edge of their screen. Clients on a floating layout were forced to stay on their screen. Quite an unintuitive behavior and now this behavior is gone. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
0b6b3bb458
commit
487fb3f945
|
@ -500,12 +500,6 @@ local function client_resize_floating(c, corner, fixed_x, fixed_y)
|
|||
capi.mousegrabber.run(function (_mouse)
|
||||
for k, v in ipairs(_mouse.buttons) do
|
||||
if v then
|
||||
-- Ignore screen changes
|
||||
if not aclient.floating.get(c)
|
||||
and capi.mouse.screen ~= c.screen then
|
||||
return true
|
||||
end
|
||||
|
||||
local ng
|
||||
if corner == "bottom_right" then
|
||||
ng = { width = _mouse.x - g.x,
|
||||
|
|
Loading…
Reference in New Issue