summaryrefslogtreecommitdiff
path: root/src/windowmanager.nim
diff options
context:
space:
mode:
authorkitty piapiac <kcp@bsd.computer>2020-08-10 01:41:31 -0700
committerkitty piapiac <kcp@bsd.computer>2020-08-10 01:41:31 -0700
commit1ff1a0f51255958e83ee7c3f17fd0be8c628fc51 (patch)
tree7036f3685c67ba45cfc34dff5449569a8bd80047 /src/windowmanager.nim
parent90c3fb297e2992cd311e85a236d3fef754296591 (diff)
some stuff
Diffstat (limited to 'src/windowmanager.nim')
-rw-r--r--src/windowmanager.nim21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/windowmanager.nim b/src/windowmanager.nim
index de4640c..2eb947e 100644
--- a/src/windowmanager.nim
+++ b/src/windowmanager.nim
@@ -1,19 +1,8 @@
import
x11/[x, xlib],
- config, /keys,
- logging, /logger,
- tables, os, posix
-
-type
- WindowManager* = ref object
- display: PDisplay
- screen: PScreen
- colormap: Colormap
- root: Window
-
- clients: seq[Window]
- focused: int
- keys: Table[cuint, keys.Key]
+ config, objects,
+ logging, logger,
+ tables, os, posix
# Initialiazation stuff
proc initKeybindings (wm: WindowManager)
@@ -65,7 +54,7 @@ proc createWindowManager*: WindowManager =
clients: @[],
focused: 0,
- keys: initTable[cuint, keys.Key](1))
+ keys: initTable[cuint, objects.Key](1))
# Run window manager
proc run* (wm: WindowManager) =
@@ -160,7 +149,7 @@ proc λsetMaster (wm: WindowManager) =
tileWindows wm
lvlDebug.log $wm.focused
-proc λspawnCustom (wm: WindowManager, key: keys.Key) =
+proc λspawnCustom (wm: WindowManager, key: objects.Key) =
if fork() == 0:
discard execvp(key.command, nil)
quit QuitSuccess