diff options
author | kitty piapiac <kcp@bsd.computer> | 2020-08-10 20:29:56 -0700 |
---|---|---|
committer | kitty piapiac <kcp@bsd.computer> | 2020-08-10 20:29:56 -0700 |
commit | 92baae67185f19c71c99134a06d5d42a43e83703 (patch) | |
tree | 4c402915dbad2ea38bd3fcbb65e5deef61102dba /src/layouts.nim | |
parent | 1ff1a0f51255958e83ee7c3f17fd0be8c628fc51 (diff) |
(。ヘ°) actually... fuck custom layouts
ill deal with them later
Diffstat (limited to 'src/layouts.nim')
-rw-r--r-- | src/layouts.nim | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/layouts.nim b/src/layouts.nim deleted file mode 100644 index 3de5da4..0000000 --- a/src/layouts.nim +++ /dev/null @@ -1,17 +0,0 @@ -import objects, x11/xlib - -proc masterStack* (wm: WindowManager, w: cuint, h: cuint, offset: cuint) = - var - n = cuint wm.clients.len - leftoverPixels = h - ((n-1) * (h div (n-1))) - lastEnd: cint = 0 - - for i in 1..n-1: - var height = (h div (n-1)) - if leftoverPixels > 0: - height += 1 - leftoverPixels -= 1 - - discard wm.display.XMoveResizeWindow(wm.clients[i], cint w div 2, lastEnd, (w div 2)-offset, height-offset) - - lastEnd += cint height
\ No newline at end of file |