dylanaraps/sowm

core dump

ronin49 opened this issue · 3 comments

1.launch system
2.create one window(mod+enter)
3.close it(mod+q)
4.alt-tab
5.crash
for me this scenario can be easily repeated
so I think this is something with memory(pointers) can be wrong
I will mention that if you will skip 2 action crash will not appear
but once you create at least one window than don't try to alt-tab if you don't have windows
also it is in scope of one workspace trying alt-tab on new, empty workspaces won't cause crashes

BTW thanks for this cool wm(especially alt-tab functionality and rounded corners and center and fullscreen)

BTW there is bud mentioned in readme and config as "wallpaper cycler" I searched, but cannot find it anywhere

yeah it happens to me

Not entirely sure how to make a patch, but it seems that the issue stems from here:

sowm/sowm.c

Line 116 in f4cb48d

if (x->prev == x) list = 0;

I replaced it with list = cur = 0, so that cur can properly be set to null