Giter Site home page Giter Site logo

Comments (3)

RamonUnch avatar RamonUnch commented on July 24, 2024 1

There is no documented interface to snap a window the native way, Microsoft did not bother to export the required functions.
It would be possible to send the keys to trigger the snap shortcuts, but this would not behave very nicely with people that have overriden the default shortcuts plus it would be limited to the focused window and would not work on multi-monitor setups.

Nobody in their right mind would re-invented snapping if it was possible to use native snapping. Even FancyZones, developed by Microsoft reinvents again snapping in a similar fashion than AltSnap does (by using a property for restore flags). AltDrag uses an internal database to store restore dimensions but otherwise it is again the same thing.

I spent hours trying to find hacks to better interact with native snapping bu the best I could find was by resizing already maximized windows, and it does not work properly, the only reliable option I could find was to re-invent the wheel.

from altdrag.

RamonUnch avatar RamonUnch commented on July 24, 2024

This is a known issue #38, there is an old PR that fixes it partially, I made more recently another PR that fixes all invisible borders #136, However they have not yet been merged. Hopefully at some point Stefan will have time to merge them.

from altdrag.

inxomnyaa avatar inxomnyaa commented on July 24, 2024

Wouldn't it be much easier for altdrag to just execute keyboard shortcuts for actually snapping the programs the way the system does it anyways? For example, execute Win-ArrowLeft for snapping to the left. that would likely prevent all the compatibility and sizing issues

from altdrag.

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.