Pinta icon indicating copy to clipboard operation
Pinta copied to clipboard

Black border around Pinta on Windows 11

Open Pepeshki opened this issue 7 months ago • 9 comments

Description When running Pinta there is a weird black border that follows the program. It also resizes with the program. Sometimes it also overtakes the entire window and makes the entire windows black. I couldn't get a video of this behavior.

To Reproduce Lannch Pinta Normally

Additional Info A video of the problem in question

Version Windows 11 24H2, Pinta 3.0

Pepeshki avatar May 21 '25 16:05 Pepeshki

It also happens when the program is built from source on Windows

Image

Pepeshki avatar May 21 '25 16:05 Pepeshki

Doesn't happen when running Pinta on WSL

Image

Pepeshki avatar May 21 '25 16:05 Pepeshki

Hmm, I haven't seen this before. It must be something happening on the GTK side since Pinta isn't doing anything special with the application window Could you try setting the GSK_RENDERER environment variable to either gl or cairo (might require a restart to take effect) https://docs.gtk.org/gtk4/running.html#gsk_renderer I'm suspicious of something graphics-card specific with GTK now using Vulkan by default

cameronwhite avatar May 22 '25 03:05 cameronwhite

I noticed https://gitlab.gnome.org/GNOME/gtk/-/issues/7567 which sounds like the same issue?

cameronwhite avatar May 22 '25 03:05 cameronwhite

Setting GSK_RENDERER to cairo fixes the issue and Pinta now displays properly.

Image

Pepeshki avatar May 23 '25 19:05 Pepeshki

However, I noticed that there still is an invisible border when trying to screenshot Pinta with ShareX.

Image

Notice how ShareX sees the window, so it looks like the border is still there, but invisible. But I guess the issue is fixed?

Pepeshki avatar May 23 '25 19:05 Pepeshki

Thanks, good to know that other renderer backends avoid it I think with it being reported already as https://gitlab.gnome.org/GNOME/gtk/-/issues/7567 there isn't much we can do on Pinta's end other than waiting for a fix from upstream

cameronwhite avatar May 24 '25 00:05 cameronwhite

The border is probably the adwaita window shadow. It is pretty big, but transparent toward the edges and so not noticeable, unless you get the bug where the shadow isblack 😄. See also https://gitlab.gnome.org/GNOME/gtk/-/issues/7502.

UrtsiSantsi avatar Jun 11 '25 12:06 UrtsiSantsi

However, I noticed that there still is an invisible border when trying to screenshot Pinta with ShareX.

Notice how ShareX sees the window, so it looks like the border is still there, but invisible. But I guess the issue is fixed?

Image of notepad, taken with the "Window" option in Fedora's screenshot menu (pink background added) Image It just kinda does that.

notquitehadouken avatar Sep 18 '25 04:09 notquitehadouken