Comments (2)
I'm not opposed to adding this in but it might take a while for me to get around to it.
If anyone wants to submit a PR for it, it shouldn't be much work. I didn't look to see how Spectacle might have done this, but you should be able to cycle through the windows on a target screen and determine if a window is the same size as the screen (see https://stackoverflow.com/questions/23844148/how-do-find-out-if-there-is-a-full-screen-app-running-on-a-specific-nsscreen). A quick search on Spectacle's code doesn't show this specific way being done there.
from rectangle.
I took a look at this one, and here's what I found.
Spectacle does not do this (and neither does Magnet FWIW). At first, I thought it did, but it turned out that Spectacle has a bug where it cycled through displays backwards - my fullscreen app in the middle of three displays appeared to be skipped but it just cycled through displays the wrong way.
With that in mind, I don't have plans to investigate this further. If someone else wants to give it a go, I don't see a reason to turn down a PR with it. I spent a while digging in Spectacle's code when I thought that it did it, and did find something worth taking a look at if someone were to implement this. It's a way to see if a window is full screen using the accessibility API, as follows:
- (BOOL)isFullScreen
{
ZKAccessibilityElement *fullScreenButtonElement = [self elementWithAttribute:kAXFullScreenButtonAttribute];
return [[fullScreenButtonElement stringValueOfAttribute:kAXSubroleAttribute] isEqualToString:(__bridge NSString *)kAXZoomButtonSubrole];
}
Here's the commit where I found it
This might be a better way to determine if a window is fullscreened than comparing the size of the window to the screen (I don't know for sure, though).
Since I'm not going to implement this, I'm closing the issue. Although a PR is welcome if anyone else wants to do it.
from rectangle.
Related Issues (20)
- Cannot Resize Microsoft Edge Browser (used to work in previous version) HOT 2
- Security Bug: Dependency on xz 5.6.1 HOT 3
- 1/6th size calculation for window is one pixel off for the right hand edge HOT 5
- Next/Previous Display Option Malfunction with Multiple Desktops, when initiated from a Secondary Screen HOT 2
- no mountable filesystems HOT 2
- spawning 2 monitors "fullscreen" HOT 2
- keyboard shortcuts changed HOT 2
- Very small "drag-to-snap zones" (not sure what to call them) HOT 2
- Google Chrome double-click window HOT 2
- Question about Maximising and Menu Bar awareness HOT 4
- Last third app shifts to the right after waking Mac from sleep on dual monitor setup HOT 1
- It is recommended to add a function similar to wins to shake the current window from left to right and automatically hide other windows, which is not as convenient as shortcut keys. HOT 1
- How does Sequoia change the future of Rectangle? HOT 1
- The disk image couldn't be opened. Failed to mount filesystems. HOT 4
- VLC player not moving to another screen HOT 2
- Snap feature aligns Terminal apps incorrectly. HOT 2
- Microsoft Office products not able to be pinned with app (specifically Excel) HOT 1
- New desktop + look HOT 4
- Maximize Width
- Rectangle behaves weirdly with Braveโs Vertical tabs HOT 3
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 rectangle.