3

While I working on some pdf file, I've found the window button (Maximize, Minimize, Close) has a bad position, they're in line with pdf tools button.

ugly window button :( This seems had to do with the fact that I used Lubuntu, in which Lubuntu uses Openbox window manager, whereas Evince uses GTK (CMIIW). I try installed Okular, and it seemed to do fine without problem.

How do I make it look like this—if possible?

desired

  • 2
    Some clarifications, please. What is CMIIW? Is your problem with Evince? Evince, I assume is using "client-side decorations" and so its buttons will be drawn by Evince itself and not the window manager of your OS. Okular does not use CSD and so, its buttons are placed by the window manager. – DK Bose Mar 6 at 6:09
  • Thanks ! I followed your suggestion about CSD, and discovered a package called gtk3-nocsd, it fixes the problem that bugging me since installing Lubuntu. Thanks ! You're a lifesaver :D – Emmet Mar 6 at 7:40
  • 1
    @DKBose your method looks as answer, consider to write it this way :) – N0rbert Mar 6 at 18:22
  • @N0rbert, I posted an answer and linked to a related question. One answer there has fewer votes but is better, IMO! – DK Bose Mar 7 at 4:01
2

A related question is How do I disable client side decoration globally in GNOME? and one answer refers to using gtk3-nocsd.

gtk3-nocsd is in the repositories and can be installed using sudo apt install gtk3-nocsd. Logging out and logging back in is needed to enable it.

The present question refers to Evince which is an application using client-side decorations (CSD) by default. After enabling gtk3-nocsd and logging out and logging in, the maximize, minimize, and close buttons are still in the top-right corner.

However, Lubuntu has the obconf package that allows the user to alter what appears in a window's title bar, assuming CSD has been disabled.

Pressing Alt+F2 and typing obconf will launch the Openbox Configuration Manager. The Appearance tab allows the user to move the maximize, minimize, and close buttons to the top-left corner of the title bar by changing the original order from "NLIMC" to "CIMLN" or whatever the user desires.

obconf

The image below shows both PCManFM (foreground) and Evince (background) with the buttons on the left.

Just for completeness, Okular is a qt-based application and currently doesn't apply CSD. And here are a KDE member's thoughts on the matter.

After changing order of title bar components

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.