简体   繁体   中英

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?

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)

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 =)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM