-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
dynamic randr dpi configuration causes miss-configured screen dimensions #52
Comments
Hi @mkarmona , Please go back to using the Can you add this to the top of your
and reatart Showing me the steps and commands you went through would be helpful as well. Thanks, |
Sure! here you have @ThomasAdam . I personally use @ThomasAdam you can find my fvwm configuration here |
Hi @mkarmona, Thanks for this. Looking through the logs, I am puzzled, because I don't see any disabled monitors, only enabled ones. This means that FVWM still thinks of them as active. In looking over the logs as well, the display widths and heights all seem to tally. I've also tried to reproduce this (albeit not on a HiDPI screen), and for me, when I change monitor dimensions, FVWM correctly works out the root window sizes for the change in screen resolution. What am I doing wrong? |
I will dig into this during this weekend. I will try to formulate a reproducible case; as much as I can though. I will try to test at least two scenarios to see whether dpi changes play a role too. |
@ThomasAdam I had few minutes off so here my tests
DP1 after change from laptop to external dp1 and apply 1.5x1.5 (before the desktop was bigger than the current screen in size (off the screen) |
When working out the working area for a desktop, use the monitor's coordinates (width/height) and not the XServer's display width or height as these will differ. Fixes GH issue #52
Hi @mkarmona Thanks. I was able to reproduce this with playing with different DPI settings. There's a bug in setting the desktop's working area which I've addressed -- please take a look at In terms of what should happen to the existing windows when a monitor's resolution changes, I am unsure what best to do here. I don't want to hard-code the behaviour in to FVWM, and it seems to be that we should concentrate on #26 instead. What do other WMs do in the case where monitors change resolutions? Would such a fix be to ensure that ALL windows are visible on screen if the resolution changes? |
@ThomasAdam you are welcome. Regarding your question about other WMs I could potentially explore others, I use i3 and awesomewm. Trying to answer your open question about moving windows back to a visible area, well not sure how is all managed internally but I would say in case positions are relative to the maximum area of the screen then they will logically remain the same. I guess the problem is the virtual area does not fit the full visible screen which as you said it is related to monitor's resolution changes. |
Right -- with the code change I mentioned, the working area is updated with the change in monitor resolution. For example, without applying that code change, if you were to change the resolution and maximize a window, it would take up the wrong area on the screen. With my code change, however, maximizing an existing window uses the correct area. So that's about 50% of the solution. I'm still in two minds about whether to make some sensible hard-coded choices in Perhaps a combination of both would make sense. Thoughts welcomed! :) |
When working out the working area for a desktop, use the monitor's coordinates (width/height) and not the XServer's display width or height as these will differ. Fixes GH issue #52
I am currently using your suggested branch with the screen-size fix, although I didn't switch monitors yet. I will check later tonight. |
@mkarmona -- thanks, and please do join |
@ThomasAdam I had a chance to look at the logs again and I got this. I just compiled the master branch. I didn't change the monitor but it throws some bug and not sure related to this or not. Please, you tell me what I should do to help if possible. fvwm 3.0.0 compiled on May 7 2020 at 18:14:35
with support for: ReadLine, RPlay, Stroke, XPM, PNG, SVG, Shape, XShm, SM, Bidi text, XRandR, XRender, XCursor, XFT, NLS |
Hi @mkarmona, Hope you're well. Have you had chance to look at this yet? I would suggest just jumping straight to the |
Hi @ThomasAdam . I just tried right now. It does not recognise the proper dpi and resolution. I have to restart fvwm3 to just get the proper screen size and hence the apps to fit the screen when I maximise or any other related to sizing operations. ↓97% $ fvwm3 -V
fvwm3 3.0.0 (dd51bc21) compiled on May 25 2020 at 17:52:35
with support for: ReadLine, RPlay, Stroke, XPM, PNG, SVG, Shape, XShm, SM, Bidi text, XRandR, XRender, XCursor, XFT, NLS |
Should |
Hi @mkarmona, A restart is not required, as I'll take a look at your debug, although I can't reproduce this problem any more. You might want to take a look at: @lgsobalvarro -- you've got a similar set up to this -- can you help here as well? Thanks again, |
AFAICT, this should be fixed now? I can't reproduce this, but if it's still a problem, please reopen this issue, adding any further relevant details. |
When working out the working area for a desktop, use the monitor's coordinates (width/height) and not the XServer's display width or height as these will differ. Fixes GH issue fvwmorg#52
My laptop screen is a high-dpi one. Sometimes I need to connect an external screen and work in a clamshell mode. So I configure the monitor and disable the laptop one. Then I change the dpi to some factor. And when I maximise any window it does not fill the whole screen. To fix this, I do restart fvwm3 and it gets the proper scaled dimension.
I am using the latest tg-22 branch. If there is anything I can do to check this further happy to help so.
The text was updated successfully, but these errors were encountered: