Skip to content

Commit afc1747

Browse files
committed
Fix Inaccurate Window Movement in Linux Framebuffer Backend
Windows would jump to unexpected positions when moved with the mouse on the Linux framebuffer backend. By suppressing the screen update behavior of twin_fbdev_update_damage, this patch ensures more robust window dragging on Raspberry Pi 3B and virtual machines.
1 parent 0b198db commit afc1747

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)