diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-04-16 23:44:13 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-04-16 23:44:13 +0200 |
| commit | 6ae079dc9ad912b84850cd1a40fbb7bcf9c989f3 (patch) | |
| tree | 7e61a32ccceb6db95b56a8979df8e76ac260b865 | |
| parent | a01fd03d79e61e9ca0afe4cab4208179b6df36de (diff) | |
| download | glitch-6ae079dc9ad912b84850cd1a40fbb7bcf9c989f3.tar.gz | |
Fixed high CPU usage after adding Wine fix
| -rw-r--r-- | glitch.h | 4 | ||||
| -rw-r--r-- | logging.c | 8 | ||||
| -rw-r--r-- | manager.c | 2 |
3 files changed, 7 insertions, 7 deletions
@@ -26,10 +26,10 @@ extern Atom _NET_WM_DESKTOP; #define COLOR_RESET "\x1B[0m" typedef enum { + LOG_ERROR, + LOG_WARNING, LOG_INFO, LOG_DEBUG, - LOG_WARNING, - LOG_ERROR, } LogLevel; typedef enum { @@ -12,17 +12,17 @@ static LogLevel max_level = LOG_INFO; static const char* level_strings[] = { + "ERROR", + "WARN", "INFO", "DEBUG", - "WARN", - "ERROR", }; static const char* level_colors[] = { + COLOR_ERROR, + COLOR_WARNING, COLOR_INFO, COLOR_DEBUG, - COLOR_WARNING, - COLOR_ERROR, }; void set_log_level(LogLevel level) { @@ -714,7 +714,7 @@ void handle_configure_request(void) { void handle_configure_notify(void) { XConfigureEvent *ev = &wm.ev.xconfigure; - if (ev->window == wm.root) return; + if (ev->window == wm.root || ev->send_event) return; // Only send synthetic events for windows we manage as top-level clients. Client *c; |
