Comments (9)
Thanks for the explanation.. This makes sense. I could try to hack around and see if I can find a way to ensure the window id is acquired properly, but it's the first time I work with MacOS internals, so it will probably take a while 😄
from jankyborders.
Ill mark this as not planned for now, but feel free to experiment with the code and submit a PR if you find something that works.
from jankyborders.
To reduce a little the scope, I have found that the issue happens only with windows from the same application.
from jankyborders.
Lol, somehow missed you suggested that exact thing in your original post 🤦♂️ 😄
from jankyborders.
I have resolved the issue. See #66 (comment)
from jankyborders.
The assumption I made while building this tool is that a window which has focus is also ordered on top of the apps window list. This assumption is needed to acquire the window id of the active window without resorting to accessibility api. This heuristic works very well when no external tools modify the windows because it is rare (I never saw it happen actually) that a window is focused but not raised.
In principle this could be included with a more robust function that acquires the window id of the focused window (but without accessibility permissions) here:
Lines 65 to 102 in 616b015
from jankyborders.
@crisidev I had the same issue. I had focus_follows_mouse
set to autofocus
for yabai
, and it seems that changing that to autoraise
fixes the issue here.
from jankyborders.
Yeah, setting it to autoraise
solves the issue, but I really do not like the autoraise
behavior..
from jankyborders.
Lets track this issue here: #66.
from jankyborders.
Related Issues (20)
- Intensive GPU usage with background blur HOT 16
- Borders flicker few times on space change with yabai HOT 4
- Restart Yabai Causes Misplaced Borders HOT 1
- border disappear when moving window to another workspace
- Border style fix HOT 2
- Crashes due to the window management bridge HOT 2
- Focused window different in borders and yabai HOT 1
- Does it work with alacritty ? HOT 1
- borders spontaneously change from a nice gradient to white HOT 2
- Brew install fails due to "framework not found AppKit" HOT 1
- macOS Borders still visible HOT 1
- Inset borders HOT 10
- add service management like yabai HOT 1
- Borders cannot be disabled on Firefox using blacklist HOT 3
- [Feature request] different color for maximized window HOT 1
- Screen tearing when resizing windows
- Repeated crash reports HOT 3
- [Feature Request] Inner/Center/Outer Config HOT 2
- Borders are not centered HOT 1
- Blur Limit? HOT 1
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 jankyborders.