Fix surface layer damage tracking

This commit is contained in:
Drew DeVault 2018-03-26 23:13:09 -04:00
parent e841e5602b
commit 776b81d499
4 changed files with 21 additions and 8 deletions

View file

@ -76,7 +76,6 @@ static void draw(void) {
int32_t old_top = margin_top;
margin_top = -(20 - ((int)frame % 20));
if (old_top != margin_top) {
wlr_log(L_DEBUG, "setting margin to %d", margin_top);
zwlr_layer_surface_v1_set_margin(layer_surface,
margin_top, 0, 0, 0);
wl_surface_commit(wl_surface);