Use the original move handler when in a nested layout.
This commit is contained in:
parent
3b3fcd82d7
commit
d15b877fb5
|
@ -637,13 +637,18 @@ local function patch_awful_layout()
|
|||
if not c.floating and context == "mouse.move" then
|
||||
local s = capi.mouse.screen
|
||||
if s.selected_tag and s.selected_tag.layout and
|
||||
s.selected_tag.layout.machi_set_cmd then
|
||||
s.selected_tag.layout.machi_get_instance_data then
|
||||
local cd, td, areas, instance, new_placement_cb = s.selected_tag.layout.machi_get_instance_data(s, s.selected_tag)
|
||||
if cd and cd[c] and cd[c].area and areas[cd[c].area].layout then
|
||||
-- Falling through in a nested layout.
|
||||
else
|
||||
if c.screen ~= s then
|
||||
c.screen = s
|
||||
end
|
||||
return
|
||||
end
|
||||
end
|
||||
end
|
||||
return old_alayout_move_handler(c, context, ...)
|
||||
end
|
||||
capi.client.disconnect_signal("request::geometry", old_alayout_move_handler)
|
||||
|
|
Loading…
Reference in New Issue