linuxmint / sticky

A sticky notes app for the linux desktop
GNU General Public License v2.0
187 stars 40 forks source link

1 pixel bug: There is 1 white pixel in the center of my desktop background. #64

Open preeset opened 2 years ago

preeset commented 2 years ago

Thank you for your great work! (and how do I remove the pixel? :S)

collinss commented 2 years ago

What desktop environment/window manager are you using? How are you closing the app?

collinss commented 2 years ago

Also, could you make sure the app is in fact not running after closing it? (ie through a system monitor, etc)

Iss-in commented 2 years ago

same, I'm using sway/Arch, on opening sticky app, beside the main window, one blank window is also displayed which can be closed but shouldn't show up

image

In my case, window is with title=Notes and app_id=sticky.py

63BeetleSmurf commented 2 years ago

I've defiantly seen the single pixel showing before, but can't remember when. I was using Sticky on my work machine (Debian 11 with XFCE) but we moved to GNOME, so may have been messing around seeing what worked with that.

Anyway, I suspect it's just the dummy window showing up. Is it necessary to call show() for the dummy window? I took out that line and everything seems to work ok.

Iss-in commented 2 years ago

yes, commenting out this line removes the 1px dummy window. Had to make this change everytime I update the app, its somewhat annoying

@collinss can we pls disable this demo window launch

collinss commented 1 year ago

@Iss-in I can't just get rid of it without consequences. It is used to be able to show a single entry in window lists and alt-tab (when the appropriate settings are enabled). There are some users who want to be able to access the notes using those methods, and the dummy window is the only way I've been able to accomplish that. I'm also not sure why it's still showing up in some desktop environments either. My suspicion is that those environments are ignoring certain requests to make the window invisible (such as moving it off screen, asking the window manager not to decorate it, and even overriding the theming to make everything invisible). I'm not sure if there is anything more I can do. It might need to be fixed at the window manager level, as those environments seem absolutely determined to show the user something (even if it's not intended in this case).

From the issue you described earlier, it sounds like sway is ignoring the request to not decorate the window (meaning it's putting borders, shadows, etc on the window even though it is specifically asked not to). If this is the case, then the problem is really with sway, and not the sticky note app. If a window requests not to be decorated, that request should be honored by the window manager, and any failure to do so is a bug (and there's nothing else I could do on my end anyway).

All that being said, I can't be sure that's what's happening, and unfortunately I don't have the time and resources to test and fix this for every desktop environment. If someone else wants to investigate further and finds a way to fix the issue on the sticky notes side, without causing regressions to current functionality, I'd be happy to merge it, but I don't have the time to go chasing down a bug in a desktop environment I don't have installed, and that has a high probability of not being fixable on my end.