u/jtsiombin r/GraphicsProgramming • Recommends
On “How exactly do modern widget toolkits (GTK+, QT) draw widgets?”
…n issue with either way, but they do require support from the X server in the first case. That support is widely available however, and it's called the X shape extension. You can have even top-level windows with arbitrary shapes. And you can even change that shape on the fly. See my "shapeblobs" hack: https://github.com/jtsiomb/shapeblobs (video: link to this video
Shadows of top-level windows are independent of GUI toolkit. They are handled by the desktop compositor if one is running. If one isn't running you generally can't have shadows (or at least semi-transparent fuzzy shadows) on top-level windows, because you can't have alpha blending with the rest of the desktop.
Shadows on widgets within a…