Search code examples
luaawesome-wmmaximize-window

Awesome WM: move/resize maximized floating windows


In a float-layout, or when having windows floating in any other layout, it is impossible to move/resize them when they're maximized. I would however like to be able to drag/resize them out of the maximized state. This doesn't seem to work:

awful.button({ modkey }, 1, 
    function (c) 
        -- I added the if-statement
        if c.maximized then
            c.maximized_horizontal = false
            c.maximized_vertical = false
        end

        awful.mouse.client.move(c)
    end
)

Has anyone encountered this or anything similar?


Solution

  • For awesome v3.5.2 this thing works:

    awful.button({ modkey }, 1, 
        function (c) 
            c.maximized_horizontal = false
            c.maximized_vertical   = false          
            awful.mouse.client.move(c)
        end)