DK Bose indeed pointed to a possible duplicate: the goal there, however, was quite different, and so is the question. The answer, however, is largely the same.
Newer versions of applications started to introduce GTK3 Client Side Decorations (CSD). This means that the application itself, and not the window manager, draws its title bar and includes controls in it.
CSD cannot easily be avoided. Linux Mint adopts the approach of eliminating all CSD and has forked core gnome applications to revert to a traditional header bar and menu. The Mate desktop as well works with core gnome applications that were forked from the Gnome 2 branch. It is difficult to avoid CSD if your desktop, including standard Ubuntu, includes it. Options are:
You can avoid CSD applications, and move to the alternative applications of Linux Mint or Mate. Unfortunatelly, that indeed means uninstalling applications that "belong" to your desktop, and install and integrate alternatives (e.g. nemo instead of nautilus), in short, a need for heavy desktop customization.
The more fundamental option to avoid CSD is to move to another desktop environment that does not adopt to CSD. These include Mint Cinnamon, XFCE, Mate and KDE.
To be complete, I also should mention gtk3-nocsd. You can re-add a traditional title bar, but the CSD area beneath remains, leading to a less than pleasant appearance.
DK Bose indeed pointed to a possible duplicate: the goal there, however, was quite different, and so is the question. The answer, however, is largely the same.
Newer versions of applications started to introduce GTK3 Client Side Decorations (CSD). This means that the application itself, and not the window manager, draws its title bar and includes controls in it.
CSD cannot easily be avoided. Linux Mint adopts the approach of eliminating all CSD and has forked core gnome applications to revert to a traditional header bar and menu. The Mate desktop as well works with core gnome applications that were forked from the Gnome 2 branch. It is difficult to avoid CSD if your desktop, including standard Ubuntu, includes it. Options are:
To be complete, I also should mention gtk3-nocsd. You can re-add a traditional title bar, but the CSD area beneath remains, leading to a less than pleasant appearance.