Black border around Pinta on Windows 11
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
It also happens when the program is built from source on Windows
Doesn't happen when running Pinta on WSL
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
I noticed https://gitlab.gnome.org/GNOME/gtk/-/issues/7567 which sounds like the same issue?
Setting GSK_RENDERER to cairo fixes the issue and Pinta now displays properly.
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?
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
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.
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)
It just kinda does that.