Kitty: Option to hide titlebar on macOS

Created on 1 Jun 2017  路  12Comments  路  Source: kovidgoyal/kitty

An option to hide the titlebar on macOS would be nice.

screen shot 2017-06-01 at 8 18 53 am

Most helpful comment

I forked glfw and tweaked their cocoa window creation to make GLFW_DECORATED not make it unresizable. You can tweak the brew formulae head option to pull from that branch and replace the dylib in the kitty app

All 12 comments

I know of no way to do that using glfw (the windowing toolkit kitty uses). The only way I know of is to use glfwWindowHint(GLFW_DECORATED, false);

but that has the side effect of there now being no way to move/resize the window.

If you know of some way to do this, then feel free to re-open this.

You can still move windows on macOS without a title bar. Hover over the edge of a window so the resize arrow appears, then drag perpendicular to the direction of the resize arrow.

Anyways, I use a window manager, and probably most people who would disable the titlebar also use a window manager.

Ah, I see what you mean. GLFW_DECORATED, false removes the resize-from-edge ability.

I forked glfw and tweaked their cocoa window creation to make GLFW_DECORATED not make it unresizable. You can tweak the brew formulae head option to pull from that branch and replace the dylib in the kitty app

@koekeishiya Thanks, that worked! I had to build glfw manually, brew gave me an error.

@kovidgoyal How do I package the .app?

@net You don't have to compile Kitty yourself, unless you've made some custom changes.

Simply copy the compiled glfw.dylib into Kitty.app/Contents/Frameworks/ replacing the existing glf3.dylib file (note: names must match). The Kitty executable rpaths will still be valid and it will run using your modified dylib.

@koekeishiya How else would I disable the titlebar?

馃帀馃帀馃帀

You can use this to hide the titlebar.

macos_hide_titlebar yes

For some reason magnet stops working for that window though. :/

It seems that this option is not available. we should use option hide_window_decorations yes instead, ref here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jomik picture Jomik  路  4Comments

lazarcf picture lazarcf  路  4Comments

metalelf0 picture metalelf0  路  4Comments

bewzaalex picture bewzaalex  路  3Comments

skosch picture skosch  路  3Comments