tSet window background color properly - ledit - Text editor (WIP) | |
git clone git://lumidify.org/ledit.git (fast, but not encrypted) | |
git clone https://lumidify.org/git/ledit.git (encrypted, but very slow) | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit bab18b62da4d443665698fa3e8bc0e28fc9bbfe0 | |
parent a75687f16688a6c226dca210fde49eedac286b09 | |
Author: lumidify <[email protected]> | |
Date: Sat, 4 Nov 2023 20:11:50 +0100 | |
Set window background color properly | |
Diffstat: | |
M ledit.c | 1 - | |
M window.c | 3 +-- | |
2 files changed, 1 insertion(+), 3 deletions(-) | |
--- | |
diff --git a/ledit.c b/ledit.c | |
t@@ -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 | |
t@@ -599,8 +599,7 @@ window_create(ledit_common *common, ledit_clipboard *clipb… | |
window->resize_cb_data = NULL; | |
memset(&window->wattrs, 0, sizeof(window->wattrs)); | |
- /* FIXME: use theme color? */ | |
- window->wattrs.background_pixel = BlackPixel(common->dpy, common->scre… | |
+ 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 */ |