FelixKratz / JankyBorders

A lightweight window border system for macOS
GNU General Public License v3.0
1.1k stars 18 forks source link

Borders flicker few times on space change with yabai #79

Open Demianeen opened 6 months ago

Demianeen commented 6 months ago

I have noticed that borders are flickering each time I change windows with yabai

If I use macos default switching with control arrows or trackpad, there is not flickering image

https://github.com/FelixKratz/JankyBorders/assets/51330172/6b1a2d60-fa8b-4605-b2d3-44da62480bde

My yabai space change command is simple keymap in skhd: ralt - 1 : yabai -m space --focus 1 ralt - 2 : yabai -m space --focus 2 ...

Is this some issue with yabai? Is there a workaround for this?

My configuration for reference:

#!/usr/bin/env sh

config=(
    ax_focus=on
    style=round
    width=8.0
    hidpi=on
    active_color=0xffabff4f
    inactive_color=0x00ffffff
)

borders "${config[@]}"
aimuzov commented 6 months ago

I got same problem after update to sonoma 14.4 (23E214) on last version of borders (1.6.0).

Demianeen commented 6 months ago

I actually would say that it looks cool. It can be nice when there are multiple windows in the same space, I can now easily spot the one active. But this probably should be an option not the enforced behaviour

aimuzov commented 6 months ago

I noticed that the problem only occurs when a second monitor is connected.

There is no such problem with the macbook screen.

Proof: https://github.com/FelixKratz/JankyBorders/assets/3313023/e9c881ae-b5b2-4a8b-a549-0d189155554c

ericlovesmath commented 5 months ago

I've been having the same problem as well; the problem occurs on all screens when an external monitor is connected, but goes away completely when disconnected.

Demianeen commented 2 months ago

The issue disappeared for me recently. Should we close it?

ericlovesmath commented 2 months ago

The issue is not gone for me

Demianeen commented 2 months ago

The issue is not gone for me

Have you updated yabai/macos?

ericlovesmath commented 2 months ago

Updated to yabai 7.1.1 and MacOS 14.6 and borders 1.6.0, same issues