It's kind of a blog if you don't think about it too hard

feed Atom Feed



Valid HTML 4.01 Strict [Valid Atom 1.0]

GNOME: Clicking top-right corner of screen does not close window

October 20, 2020

Two years ago, I wrote about how to make Compiz more Fitts's law-friendly. Apparently not many people think this is important, because it turns out it's also an issue with certain GNOME applications that use a GtkHeaderBar.

My workaround is to override the theme CSS to shift the maximized window buttons slightly up and to the right, allowing them to (usually) be triggered by clicking the top-right pixel of the screen. For some reason, it doesn't work 100% of the time, but it's better than nothing.

Add the following to ~/.config/gtk-3.0/gtk.css:

headerbar entry,
headerbar spinbutton,
headerbar button,
headerbar separator {
    margin-top: 0px;
    margin-bottom: 0px;

.maximized button.titlebutton {
    margin-right: -2px;
    margin-top: -15px;

.maximized headerbar {
    min-height: 24px;
    margin: 0px;
    padding: 0px;


Add comment

Email (optional):
Human?What is the fifth word of the above blog post?