Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Active window hint #36

Closed
FarisHijazi opened this issue Jan 31, 2022 · 8 comments
Closed

Active window hint #36

FarisHijazi opened this issue Jan 31, 2022 · 8 comments
Labels
feature New feature or request stale Issue has not been updated recently and will be closed

Comments

@FarisHijazi
Copy link

colored border around active window, active window hints exist in window managers like i3 and popos wm

You can run an autohotkey script to do this desired behaviour:
https://www.autohotkey.com/boards/viewtopic.php?t=25520

This is low priority, I'm mainly posting to share my solution

@veselink1
Copy link
Collaborator

veselink1 commented Jan 31, 2022

Thanks for the suggestion.
I will have to close this as it is a duplicate of #34.

On the implementation side:
This is not as easy to implement as that forum thread would make it seem. The linked AHK script assumes that the focused window is always on top, but that is not always the case.

If one has Task Manager with Always on Top enabled, and a browser window focused, the following result can be expected.

Screenshot 2022-01-31 215658

(The red rectangle was drawn on top with paint to illustrate how this can break.)

The drawing layer cannot be a topmost window (what the AHK does). FancyWM positions the overlay window above all managed windows, but not above all windows in the workplace, avoiding problems like the one above. FancyWM did have the border feature in version 1.x, but it was removed, because it would flicker whenever the focused window (superfluously) requests focus via ActivateWindow() (which is surprisingly often for some applications). That is, it was buggy.

@FarisHijazi
Copy link
Author

I'm fine with this quirk being there and you just mark it as experimental, after all it is functional but not pretty.
The flickering is actually a problem since it's distracting

@riotrah
Copy link

riotrah commented Feb 11, 2022

Interesting, I could argue the inverse: the flickering doesn't bother me unless it's near-constant, and even perhaps less so than a border running through and over my floating apps, potentially obscuring content.

TBH both being added with explicit experimental warnings with no support promises might work as well, if you wanted.

@veselink1
Copy link
Collaborator

Alright, I'm reopening this and will consider implementing as an "experimental" feature.

@veselink1 veselink1 reopened this Feb 11, 2022
@veselink1 veselink1 changed the title feature request: active window hint Active window hint Feb 11, 2022
@veselink1 veselink1 added the feature New feature or request label Feb 11, 2022
@ishchow
Copy link

ishchow commented Apr 4, 2022

FYI, Windows has built-in active window hints.

See these guides for how to turn it on.
Windows 10: https://www.intowindows.com/how-to-change-window-border-color-in-windows-10/.
Windows 11: https://gearupwindows.com/how-to-enable-or-disable-window-borders-color-in-windows-11/.

This is what it looks like for me with FancyWM turned on:

image

Seems to not hit any issues with Task Manager:

image

Maybe this doesn't need to be implemented in FancyWM after al?

@colomb001
Copy link

Many apps don't respect/allow windows to color their borders or title bars (ex: slack). This is definitely a feature I would be in favor of.

Copy link

This issue is stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale Issue has not been updated recently and will be closed label Apr 21, 2024
Copy link

github-actions bot commented May 5, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as completed May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request stale Issue has not been updated recently and will be closed
Projects
None yet
Development

No branches or pull requests

5 participants