Window shadow in Linux

Obsidian is an electron app, I think somewhere around v0.9.11 the frameless version was introduced (and therefore the system title bar was no longer available). I see two things that you can look into: your compositor/window manager should have some settings you can play with, and you can support Add option to enable/disable frameless mode.