Code Monkey home page Code Monkey logo

Comments (5)

bluescan avatar bluescan commented on June 16, 2024

Hi Frousties,

So this one is a little tricky... with the additional snag that I don't have a dual monitor setup -- although I do run KDE / X11 (Kubuntu)

Notes:
a) In windows 11, if I don't clamp, the window can end up off screen with no way to restore (set screen resolution large, drag window off to bottom right, close, change reolution to something small, open).
b) This is not an issue with Linux. As you mentioned, it automatically fixes it up.

At the very least I could remove the clamps for Linux.. which woud presumably solve your problem. Another, maybe better, solution is to enumerate all the attached monitors and add up all the widths (but not heights) to get a total desktop width.

The benefit of the second approach is dual monitors would work on windows too. The downside is

  1. If monitors have different reolutions, there will be rectanguar 'holes'.
  2. To do it properly I'd need to know the arrangment of monitors (are the horizontal or vertical?). eg. If horizonal, you'd add widths and probably take the max height, if vertical vice-versa. I'm sure this info is available, but hard to get right without actually being able to test it.

Still, if it's supported in Linux it would be nice to support windows too. If I did the second approach I'd just assume the monitors where horizontally arranged For I'll probably do the Linux-only ifdef quickly and give you a commit hash when it's in.

from tacentview.

Frousties avatar Frousties commented on June 16, 2024

Huh, weird behavior, would've expected Windows between the two to clamp windows automatically
I think it would be fine to remove the clamp for now on Linux only, I'll make some tests on Windows to check how it behaves there

from tacentview.

bluescan avatar bluescan commented on June 16, 2024

Cool. Assuming you are able to buid the project, give d020aa4
a go. I still clamp minimum size, but that's all. I'm out for a bit.. but I think it will work.

from tacentview.

Frousties avatar Frousties commented on June 16, 2024

Sorry for the very late reply (life got crazy), but it seems to be working perfectly, on Windows and on Linux

from tacentview.

bluescan avatar bluescan commented on June 16, 2024

NP. Thanks for testing. I'm renaming this issue to just refer to improving multi-monitor in general (esp in Windows). Want to keep the comments.

from tacentview.

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.