Re: Decreasing seams in scaled windows

John Ehresman <[email protected]> Tue, 23 Jun 2026 15:24:44 +0100
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <[email protected]>
Neil,

I=E2=80=99ve been unable to reproduce, possibly because my Wayland setup is=
 different than yours. I=E2=80=99m using a Ubuntu 24.04 based system and wh=
en the system display magnification is set to 150%, Wayland uses a 2.0 devi=
ce pixel ratio and then scales the 200% to 150%.

My take now is that Qt scaling is buggy on macOS and Wayland =E2=80=94 the =
listbox and menus show more debris than scintilla does when the highlighted=
 item moves. The reason to maybe pursue this is that I don=E2=80=99t think =
there=E2=80=99s a problem if the qt scale factor is 1; if there is, then my=
 Qt fix might be wrong / incomplete.=20

John

> On Jun 23, 2026, at 2:33=E2=80=AFAM, Neil Hodgson <scintilladotorg@gmail.=
com> wrote:
>=20
> John:
>=20
>> I see the debris on Wayland when ... . What display magnification are yo=
u using?
>=20
> I am using a display magnification of 150% set in the Gnome Settings
> app; Displays page; Scale item. I am not setting QT_SCALE_FACTOR.
>=20
>> Here=E2=80=99s a revised patch based of what I sent previously (I can re=
arrange functions if you want). It does get the scale factor from the envir=
onment, which should probably be reworked ...
>=20
> That just returns a null QRect for me since I don't have
> QT_SCALE_FACTOR set and Qt doesn't synthesize it. I stepped the code
> in the debugger to where sf.isEmpty() so SnapToNativeWindowPixelGrid
> returns early and the whole widget is repainted.
>=20
> Changing the patch so that guiFactor defaults to the scaling factor
> with `double guiFactor =3D winDpr;` produces no debris in some testing.
>=20
> Neil
>=20
> --=20
> You received this message because you are subscribed to the Google Groups=
 "scintilla-interest" group.
> To unsubscribe from this group and stop receiving emails from it, send an=
 email to [email protected].
> To view this discussion visit https://groups.google.com/d/msgid/scintilla=
-interest/CACWkrTgXFz_GJEP8O7RaRDnn22dUUfU6z2YrD46Zt6yWpUGbgA%40mail.gmail.=
com.

--=20
You received this message because you are subscribed to the Google Groups "=
scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/scintilla-i=
nterest/8415027D-686C-426B-BB6F-4A4AB178BFF2%40wingware.com.