Re: Images disappear after Display Resolution Change

2024-01-06 Thread Fred Kiefer
Let me try to explain roughly what happens when an image gets displayed. First we try to find the best representation for this image. We may already have different representations when loading an image from a file and we also regard the created cached versions as representations (This might be

Re: Images disappear after Display Resolution Change

2024-01-06 Thread Riccardo Mottola
Hi Fred, Fred Kiefer wrote: This looks like a nice way to work around this issue. At the moment I am not sure, whether it is such a good idea to have every image in an application to watch out for a screen change notification. But from my side it would be OK to enable this and see if we get

Re: Images disappear after Display Resolution Change

2023-12-31 Thread Ondrej Florian
Hmm, I did some more testing. Although it does help in some situations, the problem still persists in other cases (e.g. NSButton + image) Anyone has an idea where to look next? On 2023-12-30 18:21:16 +0100 Tom Sheffler wrote: > That looks like a good approach. FWIW - I have found that the >

Re: Images disappear after Display Resolution Change

2023-12-30 Thread Tom Sheffler
That looks like a good approach. FWIW - I have found that the NSApplicationDidChangeScreenParametersNotification is also listened for in NSWindow which gets the window’s new NSScreen and (i think) redraws the window. But I couldn’t find anything in NSWindow.m that might trigger image caches

Re: Images disappear after Display Resolution Change

2023-12-30 Thread Fred Kiefer
This looks like a nice way to work around this issue. At the moment I am not sure, whether it is such a good idea to have every image in an application to watch out for a screen change notification. But from my side it would be OK to enable this and see if we get negative results. With the code

Re: Images disappear after Display Resolution Change

2023-12-30 Thread Ondrej Florian
I think I managed to fix the problem by clearing NSImage cache after receiving NSApplicationDidChangeScreenParametersNotification Please see: https://github.com/onflapp/libs-gui/commit/2b6a26b2f013d79971165abf7b10a56b5e42c619 There is still problem with GWorkspace though. Non-scaled icons

Re: Images disappear after Display Resolution Change

2023-12-29 Thread Gregory Casamento
Would it be possible for you to file a bug for this on GitHub? The proper place is https://github.org/gnustep/libs-gui under the “Issues” tab. Gregory Casamento GNUstep Lead Developer / OLC, Principal Consultant http://www.gnustep.org - http://heronsperch.blogspot.com

Re: Images disappear after Display Resolution Change

2023-12-29 Thread Paulo Delgado
I noticed something similar happened to me on a clean Debian installation whenever the computer came back from sleep. Images and icons were all gone, also wallpaper (which gworkspace manages in my installation). PD > On Dec 29, 2023, at 1:52 PM, Ondrej Florian wrote: > > This also happens

Re: Images disappear after Display Resolution Change

2023-12-29 Thread Ondrej Florian
This also happens (sometimes) when you attach external display. It is certainly related to change of display resolution and easily reproducible by invoking xrandr. I guess that GNUstep is caching some kind of data that needs to be invalidated. On 2023-12-28 14:25:21 +0100 Sebastian Reitenbach

Re: Images disappear after Display Resolution Change

2023-12-28 Thread Sebastian Reitenbach
Hi, On Tuesday, December 26, 2023 19:52 CET, Tom Sheffler wrote: > I’ve recently installed gs-desktop (from github.com/onflapp/gs-desktop/ > ) on Debian 12 into a clean partition > in a System76 laptop. It all works very nicely as a desktop