-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] DPI changes and window controls not re-scaling #106
Comments
+1 Also, quick mitigation for the time being: Alt + F2, type "r", and hit Enter. It will refresh the Gnome Shell and fix the buttons' scale. |
Can you try in changing in https://github.com/hardpixel/unite-shell/blob/master/unite%40hardpixel.eu/modules/windowButtons.js#L27: // From this
this._signals.connect(this.monitorManager, 'monitors-changed', 'toggleButtons')
// To this
this._signals.connect(this.monitorManager, 'monitors-changed', 'updateButtons') |
Didn't resolve the problem. Another interesting thing (lazy render?) - if I don't hover over the buttons on the first screen, then switch to another screen, and hover over the buttons on the new screen - the hovered buttons' size is correct. |
Same here |
Is there a workaround for this issue? |
Any news about this issue? |
@plumlis The issue is tagged as help-wanted because I don't have a hidpi screen to work on this. |
@jonian Thanks for your reply. Actually you don't really need a HiDPI to test about this issue, You can do these step like this:
The Main issue seems is window controls buttons don't change with display Scaling By the way, I'm glad to help you with my HiDPI Display. |
Hey, recently learned about this extension - great stuff, really enjoy it! Many thanks to the authors. In Ubuntu 23.04, I made few quick experiments with the code and seems that buttons once rendered are preserved in the same scale factor, even if the Then, I decided to try I made a small demo theme which works this way and adapts to different scale factors. Here's the commit (see screenshots for 2x/1x scaling factor). My guess is that there might be a gnome-shell bug related to re-scaling I have some ideas about validating this hypothesis and possible workaround, will try it out a bit later. |
any update? |
I played with the issue a little bit and it seems to be a gnome bug apparently; none of the ways I tried to force redraw worked. Due to limited time, I just switched to my ad-hoc theme using If anyone wants this, I can create a PR to the upstream with this theme. |
I reported the issue to the Gnome team, let's see how it goes. |
No updates from gnome shell team but I found a workaround: #356 |
I'm running unite in Pop 19.04. This laptop has a 4k screen, and I run it at scale 2. Unite shows the window controls in the panel just fine.
The problem is when I connect a second, non hidpi monitor and the hidpi daemon compensates by changing the laptop to 1080p and scale 1:
Conversely, if gnome and unite load up initially at scale 1 cause I have external monitors connected, and then I disconnect them and the laptop screen goes back to 4K, the opposite happens (window controls way too small).
The text was updated successfully, but these errors were encountered: