Re: Decreasing seams in scaled windows

Neil Hodgson <[email protected]> Tue, 23 Jun 2026 11:33:40 +1000
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <CACWkrTgXFz_GJEP8O7RaRDnn22dUUfU6z2YrD46Zt6yWpUGbgA@mail.gmail.com>
John:

> I see the debris on Wayland when ... . What display magnification are you=
 using?

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.

> Here=E2=80=99s a revised patch based of what I sent previously (I can rea=
rrange functions if you want). It does get the scale factor from the enviro=
nment, which should probably be reworked ...

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.

Changing the patch so that guiFactor defaults to the scaling factor
with `double guiFactor =3D winDpr;` produces no debris in some testing.

Neil

--=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/CACWkrTgXFz_GJEP8O7RaRDnn22dUUfU6z2YrD46Zt6yWpUGbgA%40mail.gmail.co=
m.