Skip to content

Commit dcd77c7

Browse files
committed
Fix Inaccurate Window Movement in Linux Framebuffer Backend
Windows would jump to unexpected positions when moving with the mouse on the Linux framebuffer backend. This patch, tested on Raspberry Pi 3B and virtual machines, ensures smoother and more reliable window dragging behavior.
1 parent 0b198db commit dcd77c7

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)