Question

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?

Was it helpful?

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)

OTHER TIPS

I'm on awesome 3.5.6, and a similar thing works great for me:

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

I'm not sure if putting the maximized_horizontal/vertical rules in addition to maximized is redundant or not, but this combined with c.fullscreen works on everything, and it's quite handy =)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top