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

Hide window title bar #17

Open
Worie opened this issue May 28, 2017 · 15 comments
Open

Hide window title bar #17

Worie opened this issue May 28, 2017 · 15 comments
Assignees

Comments

@Worie
Copy link

Worie commented May 28, 2017

Hi, I use a lot of mySIMBL plugins made by you, great work, thanks!

I've got a feature request:
Recently I've encouraged a pretty uncommon case I guess, I'd like to hide window title bar ( https://i.stack.imgur.com/G3sRt.png ). Is that even possible and if so, is it worth an effort? What do you think?

@w0lfschild
Copy link
Owner

Yeah that would probably be possible.

@WatermelonDriveway
Copy link

if you could make this happen i'd be eternally grateful. I've been looking for a way to do this for years.

<3

@w0lfschild w0lfschild self-assigned this May 30, 2017
@w0lfschild
Copy link
Owner

The problem with this is that then you can not really move the window around unless you're using a window manager.

@Worie
Copy link
Author

Worie commented May 30, 2017 via email

@WatermelonDriveway
Copy link

For sure, but I feel like anybody who'd be interested in this would be the type of person to use a WM. Also I remember hearing people say the same thing when people were requesting a titlebar-less iTerm, but every build I've used of iTerm without a title bar is still able to be moved around with the mouse by clicking and dragging at an angle. Not sure if that would work with regular windows though.

termdrag

@w0lfschild
Copy link
Owner

w0lfschild commented May 30, 2017

Okay build 0.3.4 is up : Download

Edit: 0.3.4 has fix for hiding titlebar on applications with a toolbar

@WatermelonDriveway
Copy link

Wow, didn't expect that so soon. Awesome.

I know this is your first build w/ this fix, and I'm not sure how much you care about that feature, but I figure I'll give you some feedback anyway.

This is my Finder window w/o the titlebar hidden:
screen shot 2017-05-30 at 7 41 43 pm 2

and this is it with it hidden:
screen shot 2017-05-30 at 7 41 56 pm 2

There really isn't much difference there, although definitely a step in the right direction. With most other apps I tried, it hides the titlebar perfectly, but is then impossible to resize the window. I can move it around with my window manager, but it won't resize it from when I checked the 'hide titlebar' setting.

I can't speak for @Worie but the effect I was hoping for was something like this:
edit

Not sure how possible that might be to accomplish, or if the window resizing issue is possible to fix, but either way, thanks a lot for your work. Winbuddy is essential to my setup.

@Worie
Copy link
Author

Worie commented Jun 4, 2017

0.3.4 works like a charm, thank you. I actually have toolbar enabled so it does not affect me that much, but it would probably make sense to hide it completely in that specific case.

Anyway, thank you very much for this feature :) Respect!

@net
Copy link

net commented Jun 4, 2017

This seems to make a lot of windows unresizable. It gives me resizing issues with almost every non-native app.

@net
Copy link

net commented Jun 4, 2017

Regarding dragging issues, on macOS you can move windows around without a titlebar by moving the cursor over the edge of the window so the resize arrow appears, then dragging perpendicular to the direction of the resize arrow. (For example, when hovering over the left or right edge, drag vertically instead of horizontally.)

(This is broken by the resizing issue above.)

@net
Copy link

net commented Jun 4, 2017

A way to hide traffic lights would be nice, if possible.

@w0lfschild
Copy link
Owner

Okay another update is up 0.3.5 : Download

Should fix not being able to drag windows and fully hiding the title in Finder.

All together it will never be ideal to hide the titlebar because a lot of different apps are going to behave differently with it hidden.

@net
Copy link

net commented Jun 7, 2017

That fixed the resizing issue, but it restored the titlebar for most windows.

Perhaps the issue was caused by this?

A window that uses NSBorderlessWindowMask can’t become key or main, unless the value of canBecomeKeyWindow or canBecomeMainWindow is YES.

https://developer.apple.com/documentation/appkit/nsborderlesswindowmask

Also, I wonder how feasible it would be to make windows display as if they were in fullscreen mode (square corners, no traffic lights, whatever toolbar the application displays in fullscreen mode), although windowed in this case. That would be ideal for window managers.

@net
Copy link

net commented Jun 10, 2017

The resizing issue can be fixed for 7e20d3f with NSWindowStyleMaskResizable.

self.styleMask = NSWindowStyleMaskBorderless | NSWindowStyleMaskResizable;

@hpppxl
Copy link

hpppxl commented Sep 6, 2017

I'm running 0.3.5 right now, and hiding the title bar works for most of the apps for me. However, it does not work for the Terminal, which would be very nice to have! Do you think, you can have a look at that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants