commit bab18b62da4d443665698fa3e8bc0e28fc9bbfe0
parent a75687f16688a6c226dca210fde49eedac286b09
Author: lumidify <nobody@lumidify.org>
Date: Sat, 4 Nov 2023 20:11:50 +0100
Set window background color properly
Diffstat:
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/ledit.c b/ledit.c
@@ -814,7 +814,6 @@ error:
void
ledit_cleanup(void) {
- /* FIXME: check for other things to clean up */
search_cleanup();
basic_key_cleanup();
command_key_cleanup();
diff --git a/window.c b/window.c
@@ -599,8 +599,7 @@ window_create(ledit_common *common, ledit_clipboard *clipboard) {
window->resize_cb_data = NULL;
memset(&window->wattrs, 0, sizeof(window->wattrs));
- /* FIXME: use theme color? */
- window->wattrs.background_pixel = BlackPixel(common->dpy, common->screen);
+ window->wattrs.background_pixel = theme->text_bg.pixel;
window->wattrs.colormap = common->cm;
/* this causes the window contents to be kept
* when it is resized, leading to less flicker */