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

Truly hide windows—impossible or not? #66

Open
salvalcantara opened this issue Dec 19, 2023 · 13 comments
Open

Truly hide windows—impossible or not? #66

salvalcantara opened this issue Dec 19, 2023 · 13 comments

Comments

@salvalcantara
Copy link

salvalcantara commented Dec 19, 2023

As noted in the docs:

For better or worse, macOS doesn’t allow to place windows outside the visible area entirely. You will still be able to see a few pixels of "hidden" windows in the bottom right corner of your screen. That means, that if AeroSpace crashes badly you will still be able to manually "unhide" the windows by dragging these few pixels to the center of the screen.

For me that is not a big deal but this gets especially noticeable—probably an exaggeration 😆—when enabling gaps.

It was indeed only after I did so that I realized the hidden windows showing up in the bottom right corner of my screen. This is mostly cosmetics I know (and from the above statement I get that it might be actually impossible to avoid), but raising the issue anyway just in case there is some hope / unexplored alternative that can do the trick in a better way. E.g.,

  • Allow users to minimize the number of pixels shown for the hidden windows. With just one pixel they would really go unnoticed while still probably enough for unhiding them in case of a crash. 😎 Otherwise, do it at your own risk as they say. If some people (not we) are fine with disabling SIP for using a window manager I'm pretty sure many (if not all) will be willing to take the risk... 😉

And, to show something, here you are how my desktop looks like for empty/non-empty workspaces, respectively:

Screenshot 2023-12-19 at 07 13 42 Screenshot 2023-12-19 at 07 23 13
@salvalcantara salvalcantara changed the title Truly hide windows Truly hide windows (impossible or not?) Dec 19, 2023
@salvalcantara salvalcantara changed the title Truly hide windows (impossible or not?) Truly hide windows—impossible or not? Dec 19, 2023
@januz
Copy link

januz commented Dec 26, 2023

I was wondering the same. I would be fine with the proposed solution here, i.e., reducing the number of pixels to 1 (or having to restart if AeroSpace or using other tools to move the windows back to the visible space). Alternatively, could AeroSpace cover the other workspaces with a wallpaper?

@herself
Copy link

herself commented Feb 14, 2024

Also interested in this! Really like this one, and the window part lurking in the right corner is the only thing that's annoying me 😄

Looks like this might be hackable by playing around in the code, I'll try to give a spin later on...

@vrde
Copy link

vrde commented Feb 25, 2024

👋 i3 veteran, AeroSpace (and MacOs) newbie here. First of all, I'm very impressed by this tool! When I moved to MacOs I lost hope to find anything similar to i3. I installed it yesterday and I already feel home :)

I also agree that issue is more a nuisance than an actual problem (actually there is only one application that is giving me a small issue, that is Photoshop, it flickers on the bottom right corner, I'm wondering if I can disable Photoshop to manage its own window).

MacOs has a native "hide" function (I guess we all know ⌘+H), would this work? Or using an extra desktop as a "closet" where to move unused windows?

@nikitabobko
Copy link
Owner

nikitabobko commented Feb 25, 2024

@vrde please report a separate issue

It'd be handy to attach:
1. Screen recording. Does the window jump off the right corner?
2. What happens if you disable/quit AeroSpace and move it to the bottom right corner manually? Does jump off in the same way?
3. I'm not a photoshop user, so: is it possible to have several Photoshop windows or Photoshop always shows only a single window? (it's needed to understand whether it's possible to use "hide application" instead of moving window to the bottom right corner)

I'm wondering if I can disable Photoshop to manage its own window

4. I think the relevant issue is #2

@rafo
Copy link

rafo commented Jun 13, 2024

A workaround could be to use the macOS native and rather unknown cmd+alt+h shortcut, which hides all windows but the active window. Now you can cmd+tab to those windows you want to add. All other windows remain hidden without annoying pixels.

@juansalvatore
Copy link

juansalvatore commented Jun 21, 2024

I'm also interested in this! I think this tool is awesome and with this edge case handled in a more elegant way it would be perfect. This makes the window switch a bit annoying as something weird always happens in the bottom down corner, and it has conditioned me to remove all viewport paddings to hide the window corners, which on bigger monitors is a bit more of an issue as I'd like to have narrower windows. Hopefully there's a way to bypass that macos restriction or make them less visible.

nikitabobko added a commit that referenced this issue Aug 3, 2024
_fixes #149

If the monitor configuration is correct, this commit _fixes
#289

I accidentally managed to reduce number of visible pixels to a single
1-pixel vertial line, so it paritally _fixes
#66
nikitabobko added a commit that referenced this issue Aug 3, 2024
_fixes #149

If the monitor configuration is correct, this commit _fixes
#289

I accidentally managed to reduce number of visible pixels to a single
1-pixel vertial line, so it paritally _fixes
#66
@nikitabobko
Copy link
Owner

nikitabobko commented Aug 3, 2024

Update

The issue is partially fixed in 0.14.0. Hidden windows in the corners are now less noticeable, now they take only 1-pixel vertical line in the bottom right or left corner.

Before:
Screenshot 2024-08-03 at 22 57 01
After:
Screenshot 2024-08-03 at 22 56 51

@tobiasgiese
Copy link
Sponsor

tobiasgiese commented Aug 4, 2024

Do we have to configure sth here? My hidden windows are still visible

This is a screenshot of my bottom right corner:

image

An this is my display arrangement:

image

On my bottom left corner (i.e., my macbook to the left of my monitor) it is working as expected 🤔

@salvalcantara
Copy link
Author

@nikitabobko Works like a charm for me, huge thanks!

@tobiasgiese
Copy link
Sponsor

@nikitabobko I think I know why I can still see the windows: I have the Dock on the right side.

image

Enabling auto-hiding the dock removes the windows

image

@TimAnthonyAlexander
Copy link

TimAnthonyAlexander commented Aug 13, 2024

Hi there, I seem to have a very related bug, where an application that is bound to workspace B, and then workspace B is bound to monitor 2, is shown (when inactive) with full width on monitor 3.
How to fix this? It is very visible, only just happened.
Screenshot 2024-08-13 at 15 45 11

Monitor 3, showing an application from workspace b (bound to monitor 2), covering the full bottom of the monitor.

I have restarted my Mac, the window manager, Aerospace, changing settings, nothing seemed to help.

@tobiasgiese
Copy link
Sponsor

@TimAnthonyAlexander how is your monitor arrangement? Have you followed the proper monitor arrangement docs?

@TimAnthonyAlexander
Copy link

Hi there, I'm sorry, now I understood that part of the documentation. Honestly I didn't understand that particular part when reading the docs the first time. Problem is solved. Thanks!

jakenvac pushed a commit to jakenvac/AeroSpace that referenced this issue Aug 16, 2024
_fixes nikitabobko#149

If the monitor configuration is correct, this commit _fixes
nikitabobko#289

I accidentally managed to reduce number of visible pixels to a single
1-pixel vertial line, so it paritally _fixes
nikitabobko#66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants