Now that the render draws the cursor, rather than the display knowing where it is,
we want DAMAGED_CURSOR to propagate down.
Signed-off-by: NeilBrown <neil@brown.name>
if ((p->damaged | type) == p->damaged)
return;
p->damaged |= type;
- type = DAMAGED_CHILD | (type & DAMAGED_CURSOR);
+ type = DAMAGED_CHILD;
p = p->parent;
}
}
ci2.extra |= DAMAGED_CONTENT;
if (ci2.extra & DAMAGED_CONTENT)
ci2.extra |= DAMAGED_CURSOR;
- damage &= DAMAGED_SIZE | DAMAGED_EVENTS;
+ damage &= DAMAGED_SIZE | DAMAGED_EVENTS | DAMAGED_CURSOR;
ci2.comm = p->handle;
ret = p->handle->func(&ci2);
if (ret == 0)
struct command *comm);
struct command *key_register_prefix(char *name);
-/* DAMAGED_SIZE and DAMAGED_EVENTS propagate down.
- * DAMAGED_CURSOR propagates up.
+/* DAMAGED_CURSOR, DAMAGED_SIZE and DAMAGED_EVENTS propagate down.
* If any flag is set on children, DAMAGED_CHILD is set.
*/
enum {