Title Blurry text when clicking in Wayland
AuthorRodrigo Arias Mallo
CreatedWed, 07 Oct 2026 18:07:33 +0200
State open

When using a secondary monitor on Wayland, pages show blurry text but after scrolling it gets fixed. Then once the text is clicked (so it redraws) the text gets blurry again:

It is likely to be related to fractional positioning.

The secondary monitor scale factor is set to 1.000000 as reported by Sway. The laptop screen has a scale factor of 1.25, but Dillo is placed in the secondary monitor.

Tested with FLTK commit 0bbf02e76300f9ac4970d6d4666a56d56e409fd3 from master.

Rodrigo Arias Mallo on Mon, 26 Oct 2026 21:33:26 +0100

It seems occur with a draw call with damage set to 16 (FL_DAMAGE_USER1), caused by clicking any text on the page.

Setting the damage to all seems to avoid the problem:

diff --git a/dw/fltkviewport.cc b/dw/fltkviewport.cc
index d24703b2..de5205ff 100644
--- a/dw/fltkviewport.cc
+++ b/dw/fltkviewport.cc
@@ -223,6 +223,7 @@ void FltkViewport::draw_area (void *data, int x, int y, int w, int h)
  */
 void FltkViewport::draw ()
 {
+   damage(FL_DAMAGE_ALL);
    const int d = damage(),
              vis_vs = vscrollbar->visible () ? SCROLLBAR_THICKNESS : 0,
              vis_hs = hscrollbar->visible () ? SCROLLBAR_THICKNESS : 0,