fix(wm,st,theme): fix live theme reload across apps and top-bar artifacts
- Read XA_RESOURCE_MANAGER directly via XGetWindowProperty in anode_open_xres_db() instead of XResourceManagerString(), avoiding stale startup Xlib caches. - Switch xrdb -merge to xrdb -load in anode-apply-theme and reset default palettes/resources on reload in dwm and st so omitted keys do not linger. - Update Mod4+Shift+r (reloadxres) in dwm to run xrdb -load, signal running ANODE processes, and run anode-autostart reload while freeing old XftColors, preserving fullscreen borders, and updating non-ARGB tray icon backgrounds. - Watch root PropertyNotify(XA_RESOURCE_MANAGER) in st, use sigaction(SIGUSR1), free reloaded resource strings, and refresh window background and cursor colors. - Fix drw_text() return x-coordinate in dwm and dmenu and clear the bar pixmap in drawbar() to eliminate unpainted gaps before window titles on reload. - Sync active_name on external theme reload in anode-themes and add pixel-level test_live_theme_reload_and_bar_artifacts() in tests/test_x11_xvfb.py.
This commit is contained in:
1 parent
d1eff5562d
commit
86ca30db03
8 files changed
+343
-42
No files matched your search
@@ -293,7 +293,7 @@ printf 'THEME=%s\nXTH_FILE=%s\n' "$THEME_NAME" "$XTH_FILE" > "$TMP_TC"
|
||||
mv -f "$TMP_TC" "$THEME_CONF"
|
||||
|
||||
if [ -n "${DISPLAY:-}" ] && command -v xrdb >/dev/null 2>&1; then
|
||||
xrdb -merge "$HOME/.Xresources" >/dev/null 2>&1 || true
|
||||
xrdb -load "$HOME/.Xresources" >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
if [ -x "$SCRIPT_DIR/anode-sync-gtk-theme" ]; then
|
||||
|
||||
Reference in new issue
Block a user