• Olivier Fourdan's avatar
    headerbar: do not show buttons for modals/transients · 7c397c62
    Olivier Fourdan authored
    GtkHeadeBar checks the window type hint to determine if the regular
    buttons such as menu, maximize or iconify should be visible in the
    header bar.
    However, an application may very well use a "normal" toplevel window and
    set it transient and modal afterwards. In such a case, the iconify
    button would remain visible, and the user can hide the window, but being
    a modal, the parent window would remain insensitive.
    Check for the window type, modality and transient relationship to decide
    whether or not the regular toplevel buttons should be visible in the
    header bar.
gtkwindow.c 371 KB