Comments (3)
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.
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.
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)
- Is X or D Input support possible? HOT 9
- Suggestion: Scroll to adjust screen brightness
- Windows 11 start and other ui elements are able to be broken. HOT 2
- Add toggleable option for Alt + Shift window snapping HOT 2
- Instructions for dealing with DPI scaling on Windows 11 HOT 2
- Feature request: Add option to disable centre resizing. HOT 1
- Window movement lags when the window is partially off-screen HOT 2
- Pressing shift causes programs to lose mouse capture HOT 2
- [Feature request] - Hotkeys ? HOT 1
- Does anyone know? HOT 3
- WSL2 Windows only move the display, not the clickable area HOT 3
- Snaps any window HOT 2
- Any updates? HOT 1
- Finnish (fi-FI) HOT 2
- Ability to disable Ctrl screen imprisonment
- Add new functions?
- Link to website in About is invalid HOT 2
- Alt+Drag (probably falsley) detected as Malware on VirusTotal (2/75) HOT 1
- thank you for this project [not an issue] HOT 1
- Windows 23H2v2 conflict with Alt + TAB task switcher HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from altdrag.