You are not logged in.

#1 2021-07-22 16:46:08

seraaa
Member
Registered: 2019-02-21
Posts: 5

awesome wm - Problems with defining the workarea/pading and margins.

output of awesome -v:

awesome v4.3 (Too long)
 • Compiled against Lua 5.3.5 (running with Lua 5.3)
 • D-Bus support: ✔
 • execinfo support: ✔
 • xcb-randr version: 1.6
 • LGI version: 0.9.2

I am using awesome wm and configured it that I can snap the windows in the edges (like in windows or xfce when dragging a window to a corner.
Here is the partial code:

awful.key({ modkey, "Mod1" }, "n",
        function (c)
                        if not c.floating then
                                c.floating = not c.floating
                                local f = awful.placement.scale + awful.placement.left + awful.placement.maximize_vertically
                                f(c.focus, {honor_workarea=true, to_percent = 0.5})

                        else
                                local f = awful.placement.scale + awful.placement.left + awful.placement.maximize_vertically
                                f(c.focus, {honor_workarea=true, to_percent = 0.5})

                        end
        end ,

My Windows spawn all non floating and not maximized and the size_hints_honor is set to false.

Here is now my problem:
When spawning a new window, and snapping it to the bottom, right top, the left or right side of the screen,  a slim margin is visible at the bottom and on the right side (which is not the same size as the useless_gap).
Only when snapping the window in the given direction again with a keyboard shortcut, the margin dissapears.
I am using the maximized tiling option of awesome wm.

Any suggestions where the error could be?


Edit:

Very similar to the question: https://superuser.com/questions/751075/ … awesome-wm
But the suggested fix doesnt fix mine. Also: The Problem seems to just occur with lxterminal.

Last edited by seraaa (2021-07-23 12:05:11)

Offline

Board footer

Powered by FluxBB