tClear outline artefacts on mouse release - glazier - window management experiments
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit b5abbc4f0592c245acd534107d2997e8f8eae34b
DIR parent 917e7b9aee94663cc46019b26eaec1d3c1c3060e
HTML Author: Willy Goiffon <dev@z3bra.org>
Date: Fri, 5 Jun 2020 07:40:13 +0200
Clear outline artefacts on mouse release
Diffstat:
M glazier.c | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
DIR diff --git a/glazier.c b/glazier.c
t@@ -453,6 +453,10 @@ cb_mouse_release(xcb_generic_event_t *ev)
outline(scrn->root, 0, 0, 0, 0);
xcb_clear_area(conn, 0, scrn->root, 0, 0, 0, 0);
+ w = wm_get_attribute(curwid, ATTR_W);
+ h = wm_get_attribute(curwid, ATTR_H);
+ xcb_clear_area(conn, 1, curwid, 0, 0, w, h);
+
return 0;
}