Awesome WM: move / resize floating windows

In a floating point layout or if there are windows floating in any other layout, it is impossible to move / resize them when they are maximized. However, I would like to be able to drag / resize from the maximized state. This does not 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 come across this or something similar?

+4
source share
2 answers

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)
+8
source

I am in awesome 3.5.6, and the like works fine 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)

, _ / , c.fullscreen , =)

0

Source: https://habr.com/ru/post/1535760/


All Articles