dunst
dunst copied to clipboard
Refactoring x11
For scheduled refactoring of the X11 code, what should we pay attention to?
- add ability to center the notifications
- transparent colors (rather than a general transparency)
-
transparent separator colors
- (or maybe use a single window per notification!?)
- Application name based geometry
@tsipinakis please add your thoughts here, too!
Single windows per notifications would be amazing, I would love to have different notifications size's based on the width needed for that notification, and not get resized when the bigger one comes along.
add ability to center the notifications
I wouldn't put that in the X11 refactor that falls more into the settings redesign (#336 ), the implementation part of it is pretty straight-forward.
We should also look for:
-
Separate X11 with the rest of the codebase as much as possible (eyeing those
xctx
accesses innotification.c
). -
Decoupling X11 API calls from the pango/cairo drawing functions
I wouldn't put that in the X11 refactor that falls more into the settings redesign (#336 ), the implementation part of it is pretty straight-forward.
Well, however we should look forward to refactor it in a way, that we can adapt such changes later very easy.
IMHO we should actually now decide, where we want to head for with the graphics stack. This avoids double work.
Implementing the transparency for the separators would be great!
tracking this in #1018