Giter VIP home page Giter VIP logo

Comments (4)

ssokolow avatar ssokolow commented on June 12, 2024

Are you running the 4K TV with 2x scaling? I have a likely fix for your problem that I got side-tracked from merging into master. Try the hidpi_fix branch and let me know if that works as expected.

Here's how the problem I suspect you're encountering works:

  1. I don't have any monitors bigger than 1920x1080 and certainly no HiDPI monitors and issue #113 introduced me to the discovery that GDK and libWnck handle HiDPI differently.
  2. libWnck, being concerned with window management across the whole desktop, which could be made up of varying DPI monitors, works in device pixel coordinates. If the screen is 4K, the API call to reposition a window expects dimensions in 4K.
  3. libWnck doesn't have API calls to get monitor rectangles, so I rely on GDK for that.
  4. GDK is normally used for writing more ordinary applications, so it pre-scales coordinates so that something HiDPI-unaware that gets scaled up will continue to Just Workβ„’.
  5. Because of this, if you're running a 4K with 2x scaling and ask GDK what the monitor rectangle is, it reports 1920x1080 rather than 3840x2160.
  6. The hidpi_fix branch adds calls to explicitly translate between device and application pixels when making GDK calls.

If it seems to work for you, please test it as thoroughly as you can so I have that little bit of extra confirmation that I didn't introduce any bugs before I merge the branch to master.

from quicktile.

ssokolow avatar ssokolow commented on June 12, 2024

The hidpi_fix branch has now been merged to master and I'm going to assume that fixes your problem for lack of a reply.

from quicktile.

jacklumber avatar jacklumber commented on June 12, 2024

Sorry just saw this! No scaling but the problem no longer occurred after setting a 4K resolution with via xrandr. Thank you for the support! Would you like me to verify the latest on master doesn't have the above issue using 2X scaling?

from quicktile.

ssokolow avatar ssokolow commented on June 12, 2024

Sorry just saw this!

That's OK. I'm sure I have plenty of other things which I lost track of, so I can sympathize.

Would you like me to verify the latest on master doesn't have the above issue using 2X scaling?

A test would be appreciated since I still don't have any HiDPI hardware to test with myself.

from quicktile.

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.