95 Commits

Author SHA1 Message Date
ee88d8a600 remove unused mstack layout function 2023-09-17 15:27:10 +02:00
c220aec518 add wm_treenode_to_str function, remove unnecessary wm_treenode_free 2023-09-17 15:25:40 +02:00
7b2e92d256 zero-initialize Client struct on allocation 2023-09-17 15:18:59 +02:00
56a7a98ed9 move debug flags to new variable, move address sanitizer flags to debug flags 2023-09-17 15:18:13 +02:00
1aace4baa9 add debug target 2023-09-12 19:54:08 +02:00
4d0e9218e5 update DEBUG_PRINT macro definition 2023-09-12 19:53:50 +02:00
588f9e0c60 clean up targets 2023-09-12 19:21:17 +02:00
3eee3ea684 add tests.c 2023-09-09 14:14:53 +02:00
f885f08dcc add targets for building tests 2023-09-09 14:13:51 +02:00
8c49238e95 implement moving clients directionally 2023-09-09 14:11:27 +02:00
449911a089 Merge branch 'treenode_heap' 2023-08-10 12:05:04 +02:00
57cfbe4496 fix client removal edge case 2023-08-10 12:02:43 +02:00
ce2fb27ccb fix XGetWMName leak 2023-08-10 12:01:38 +02:00
077c2b5f69 update TreeNode function usages to use pointers 2023-08-09 20:00:06 +02:00
b0f446a514 make TreeNode struct heap-allocated 2023-08-09 19:59:05 +02:00
beaa017c87 formatting: remove trailing whitespace and commented code 2023-07-06 16:07:29 +02:00
a0e2f2d7df add undefined behavior sanitizer and address sanitizer to Makefile 2023-07-06 14:57:29 +02:00
f822c400e5 replace old client linked list code 2023-07-06 14:54:33 +02:00
4b1a638633 fix memory leaks 2023-07-06 14:41:54 +02:00
cbd694b42c zero-initialize Wm struct 2023-07-05 22:36:55 +02:00
977a8df56b read config file, early return in wm_layout when there are no clients 2023-07-05 22:36:25 +02:00
c85bbd8f09 add config file implementation 2023-07-05 22:33:35 +02:00
f4aa263368 initialize client field to NULL in wm_treenode_new 2023-07-05 20:38:46 +02:00
72663656e4 swap assertions for if checks 2023-07-05 20:36:08 +02:00
f98f9e6826 move config-related variables and functions to config.c 2023-07-04 19:31:38 +02:00
12351bdf99 add config.h and config.c 2023-07-04 19:30:37 +02:00
6db707686a fix treenode removal edge case 2023-07-04 16:08:04 +02:00
3252773ff7 fix borders 2023-07-04 16:07:24 +02:00
bcbe755176 move setting supported ewmh atoms to new function 2023-07-03 18:07:46 +02:00
32d4a52800 fix workspace switching 2023-07-03 18:02:12 +02:00
784fd89cf8 move source files to src/ directory 2023-07-02 23:36:22 +02:00
6778471950 Merge branch 'tree' 2023-07-02 23:26:15 +02:00
bee34c02c0 fix various warnings 2023-07-02 22:53:45 +02:00
57ad7142bb fix warning about different signedness integer comparison 2023-07-02 22:44:06 +02:00
ebaa9734dc fix a problem when removing a node that has another split as their sibling 2023-07-02 22:40:37 +02:00
463d095aa0 focus new clients 2023-07-02 21:21:30 +02:00
24a8cf1856 add function and keybinds to switch split mode 2023-07-02 19:53:27 +02:00
1f07ccbfd6 add function to convert tree structure to graphviz tree (DOT file) 2023-07-02 17:08:56 +02:00
921813176d remove unnecessary DEBUG_PRINT statements 2023-07-01 20:19:03 +02:00
e350587aa2 rewrite wm_treenode_ptr_find_client_node, return sibling from wm_treenode_remove_client 2023-07-01 20:16:54 +02:00
64d2adbe49 update directional focus to work with tree structure, focus another client after closing one 2023-07-01 20:10:27 +02:00
867757734f update wm_client_get_focused to find focused client in tree structure 2023-06-01 15:52:09 +02:00
1298543661 use updated util function signatures 2023-06-01 15:23:45 +02:00
cf3bea02da add id field to TreeNode, add debug logs, fixes 2023-06-01 15:22:58 +02:00
e1620b452a change wm_client_to_xwchanges parameter to Client*, remove client from tree when killed 2023-06-01 15:21:58 +02:00
00821acf12 insert client into tree on map request 2023-06-01 15:20:51 +02:00
6ae7143655 update wm_layout function to handle tree structure 2023-05-28 17:35:03 +02:00
ea2c1dcfbd add function to find addresses of client tree nodes 2023-05-28 17:25:39 +02:00
ca70f08995 update DEBUG_PRINT to include file name and line number 2023-05-28 17:21:47 +02:00
38f03105bd add function to insert new client into tree structure 2023-05-28 17:19:34 +02:00