Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-12-26 15:54:25

Tino67
Member
From: Germany
Registered: 2024-12-26
Posts: 4
Windows 10Firefox 133.0

Same theme but different title bar icons

I have just installed Linux Mint 22 xfce. I want an x with a rectangular frame to close the window. The default theme is set in the window manager. But some windows like Thunderbird or the calculator have a different look and do not respond to changes in the window manager. Why? How can I set all windows so that they have the look of the default theme?


gqljXBb.jpeg

Offline

#2 2024-12-26 19:00:45

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,678
LinuxFirefox 133.0

Re: Same theme but different title bar icons

Hello and welcome.

This is the old CSD / non-CSD windows issue. The 2 windows to the right are CSD (drawn by the application itself) - the ones to the left are SSD (drawn by xfwm4). There are alot of threads here about CSD/SSD window decorations if you're interested in reading up on it.

To fix it, you have three options:

  1. force all windows to be CSD - to do so, export "GTK_CSD=1" in your startup environment files (this will make all windows look like the ones on the right)

  2. use a library like gtk-nocsd to remove CSD windows from all gtk apps. (this will make all windows look like the ones on the left, but is a hack solution)

  3. use alternative applications that are not built using CSD/headerbars.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2024-12-27 09:42:36

Tino67
Member
From: Germany
Registered: 2024-12-26
Posts: 4
Windows 10Firefox 133.0

Re: Same theme but different title bar icons

Thank you for your answer.

I want to switch from Windows to Linux. However, I still miss a very useful function in Linux. I have to close hundreds of maximized windows every day. To close a maximized window in Windows, I don't have to look for the x in the top right corner and click on it, all I have to do is move the mouse to the top right corner and click. You can do this with your eyes closed. In Windows, the area with the x for closing a window is flush with the edge of the window itself. I can't find a solution like this with any Linux distribution.

lNtmW4k.jpeg

Offline

#4 2024-12-27 12:33:19

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,678
LinuxFirefox 133.0

Re: Same theme but different title bar icons

Again, some options:

  1. You can look through https://www.xfce-look.org/browse/ to see if such a theme exists where the close button is in the exact top-right of the window

  2. You could create your own custom xfwm4 theme (which won't be easy for a new user)

  3. Have a look at the windowck plugin. With a panel at the top of your screen and the "Window Header - Buttons" plugin added to the panel as the last item, you will get a close button in the top right of the screen.

  4. You can also use the generic monitor plugin for this. Create an executable script that runs the following (you will need the xdotool package installed):

    #!/bin/bash
    
    echo "<icon>window-close</icon>"
    echo "<iconclick>xdotool getactivewindow windowclose</iconclick>"
    echo "<css>* {padding: 0}</css>"
    echo "<tool></tool>"

    ...add the plugin to the panel in the last position with the following settings:
    Command = /full/path/to/script
    Label = unchecked
    Period = 86400


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2024-12-27 18:49:59

Tino67
Member
From: Germany
Registered: 2024-12-26
Posts: 4
Windows 10Firefox 133.0

Re: Same theme but different title bar icons

Thanks again!

Which Linux distribution would you be most likely to try this with?

It will take a while until I have figured everything out... but I'll get back to you and give you feedback.

Offline

#6 2024-12-27 19:18:34

JmaCWQ
Member
Registered: 2022-12-06
Posts: 50
LinuxFirefox 128.0

Re: Same theme but different title bar icons

With Xfce I believe it's the Window Manager Style and Window Manager Tweak settings that this can be done with.

The windows must be maximised, otherwise the 'click and hold to resize the window' pixels will be active in the top right corner.
Also the setting "Hide frame of windows when maximised" on the "Accessibility" tab of the Window Manager Tweaks settings must be checked.
If the frame is not hidden at maximised the 'click and hold to resize the window' pixels are also active.

It appears that even if the actual icon itself doesn't go right to the edge of the screen, with the frame hidden the pixels all the way to the top right of the screen trigger the Close function when clicked.

I just tried a lot of the styles with MX-Linux 21.3 and it worked for all of them.

Offline

#7 2024-12-29 10:26:40

Tino67
Member
From: Germany
Registered: 2024-12-26
Posts: 4
Windows 10Firefox 133.0

Re: Same theme but different title bar icons

Ich habe folgendes mit LM 22 xfce getestet:

Changes in the window manager or window manager tweak such as "Hide frame of windows when maximized" have shown no effect on the min, max, close buttons of the CSD windows (drawn by the application itself).

I then tried two Windows 10 themes.

https://www.xfce-look.org/p/1216281/
https://github.com/B00merang-Project/Wi … k/releases

With the themes it was the other way round. The min, max, close buttons only change for SSD windows (drawn by xfwm4).

The windowck plugin would mean that I have to align the panel at the top. But I don't want that. I want my panel to stay at the bottom, as before and as usual. I then saw by chance that there are also Windows 10 themes for the cinnamon desktop and tested it with LMDE 6. Here the theme changes all windows. No idea how it is with cinnamon, whether there is also CSD/SSD. But for me it is easier to use a desktop environment that just works.

Thanks!

Offline

#8 2024-12-29 13:50:19

JmaCWQ
Member
Registered: 2022-12-06
Posts: 50
LinuxFirefox 128.0

Re: Same theme but different title bar icons

Yes you're correct about it not working on the CSD drawn windows, I never thought to try them as I detest CSD and use MX-tools to disable it.
And it does disable it for most things I use, except Task Manager and Archive Manager.

Perhaps with the newer version of MX-Linux than I use, 23.4, it disables all CSD correctly, if so then it might be a possible solution.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.023 seconds, 7 queries executed - Memory usage: 559.5 KiB (Peak: 576.34 KiB) ]