Skip to content

Commit f4d5b80

Browse files
authored
Merge pull request #107 from huaxinliao/main
Fix Inaccurate Window Movement in Linux Framebuffer Backend
2 parents 58df55b + afc1747 commit f4d5b80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/fbdev.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ static bool twin_fbdev_update_damage(void *closure)
190190
twin_fbdev_t *tx = PRIV(closure);
191191
twin_screen_t *screen = SCREEN(closure);
192192

193-
if (!tx->vt_active && twin_screen_damaged(screen))
193+
if (!tx->vt_active && (tx->fb_base == MAP_FAILED) &&
194+
twin_screen_damaged(screen))
194195
twin_screen_update(screen);
195196

196197
return true;

0 commit comments

Comments
 (0)