Giter VIP home page Giter VIP logo

Comments (6)

McYoloSwagHam avatar McYoloSwagHam commented on July 17, 2024

Could you explain what you mean?
Do you mean the situation when you move a window from one monitor to another and they have different DPIs?

from win3wm.

skyline75489 avatar skyline75489 commented on July 17, 2024

Sorry I wasn't being clear. I mean I was changing the DPI of the current monitor. Like from 100% to 200%.

from win3wm.

McYoloSwagHam avatar McYoloSwagHam commented on July 17, 2024

Is this something you do commonly, changing DPIs of your monitor?
I can't really see a common use case for changing DPIs of your monitor as you work.
Regardless, when crash handling and restarting with memory/layout will be implemented, I'm sure this problem will disappear since WinWM would just restart with the new DPI

from win3wm.

skyline75489 avatar skyline75489 commented on July 17, 2024

Yeah.. my use case might be unusual. The DPI change happens when I remote login a Windows machine using a device that has different DPI than that machine via RDP.

from win3wm.

McYoloSwagHam avatar McYoloSwagHam commented on July 17, 2024

So as far as I understand, the way to resolve this would be to handle WM_WHATEVER_DPI_CHANGE, and scale the windows accordingly, right?

from win3wm.

McYoloSwagHam avatar McYoloSwagHam commented on July 17, 2024

Update: Upon further inquiry, this is harder than it looks, WM_DPICHANGED does not supply the HMONITOR whose DPI changed making it very hard to update the windows who are affected by the DPI change.

And using verify_workspace seems to fix the workspace (mod+r)

from win3wm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.