Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-08-02 20:56:04

forcedtopicksomething
Member
Registered: 2023-07-26
Posts: 56

Can Xfce windows be set to close on top-left double-click instead of u

n-maximizing?

When I move the mouse cursor to the top-left pixel, which is a natural hand motion for me after a lifetime of using Windows, and double-click, I expect it to close the maximized window.

Instead, it un-maximizes it.

Only if I first move it to the top-left pixel and then slightly move it down and to the right, does it close the window when double-clicking.

Can Xfce be instructed to behave like this without learning and modifying the source code and then maintaining my own fork of the software? Some sort of setting which I've missed?

PS: The character limit for the subject lines on this forum is frustratingly low.

Offline

#2 2023-08-02 22:22:35

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Can Xfce windows be set to close on top-left double-click instead of u

So this is an interesting one.

Which version of Xfce are using and is it any specific window that does this?

With non-CSD windows, xfwm4 manages the titlebar and it will close on double-click on the top left. With CSD windows it will not because GTK handles those (or rather, the application itself through GTK). And although double-clicking on the titlebar options are available, close is not one of those options.

One potential option, if this is a deal breaker, is to force non-CSD windows. With Xfce 4.18, you can disable internal use of CSD via Settings Manager > Appearance > Settings, and un-check "Enable header bars..." However, any non-Xfce apps that use CSD will still have the problem. In which case, you may want to consider an library override like gtk3-nocsd to fully remove CSD from GTK3 (the nuclear option).


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2023-08-02 22:54:22

forcedtopicksomething
Member
Registered: 2023-07-26
Posts: 56

Re: Can Xfce windows be set to close on top-left double-click instead of u

ToZ wrote:

Which version of Xfce are using and is it any specific window that does this?

"xfce4/stable,now 4.18"

No, it seems to be all windows/programs. At least Vivaldi, Thunar, Mousepad, etc.

Could it have something to do with me using the Chicago95 theme? I'm still unsure just how much power themes have to change behaviour and not just the visual look, and I've been running it right from the start of using Linux (Debian 12), so I don't really have any experience of using the default theme.

ToZ wrote:

And although double-clicking on the titlebar options are available, close is not one of those options.

Well, I wouldn't want it to close if I double-clicked the "title bar" -- only in the little icon square in the top-left.

Last edited by forcedtopicksomething (2023-08-02 22:58:38)

Offline

#4 2023-08-02 23:33:49

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Can Xfce windows be set to close on top-left double-click instead of u

forcedtopicksomething wrote:

Could it have something to do with me using the Chicago95 theme?

Possibly, but I doubt it. You can try changing the Window Manager theme to make sure.

ToZ wrote:

And although double-clicking on the titlebar options are available, close is not one of those options.

Well, I wouldn't want it to close if I double-clicked the "title bar" -- only in the little icon square in the top-left.

That's just how its managed by GTK3 and CSD/Headerbars. The application itself is responsible for drawing and managing those - not the window manager.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2023-08-03 09:00:19

forcedtopicksomething
Member
Registered: 2023-07-26
Posts: 56

Re: Can Xfce windows be set to close on top-left double-click instead of u

ToZ wrote:
forcedtopicksomething wrote:

Could it have something to do with me using the Chicago95 theme?

Possibly, but I doubt it. You can try changing the Window Manager theme to make sure.

I don't know how to fully change it back, but setting the style to the default has no impact on this. But again, it seems to change only a certain "part" of the theme rather than everything. I can't see any way to switch the "full" theme between default and what I have.

That's just how its managed by GTK3 and CSD/Headerbars. The application itself is responsible for drawing and managing those - not the window manager.

Sorry, you've lost me. Is what I want not possible?

Offline

#6 2023-08-03 10:09:34

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Can Xfce windows be set to close on top-left double-click instead of u

I installed Debian 12 and Chicago 95 in a VM to have a closer look. CSD is not involved here.

If you change the Window Manager theme to Default, then this works. I was able to track down the issue to one setting in Chicago95/xfwm4/themerc file. Change the line that reads:

frame_border_top=4

...to read:

frame_border_top=5

I'm not sure why this is causing the issue, but once I made this change I was able to close the window with a double-click.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2023-08-03 20:02:42

forcedtopicksomething
Member
Registered: 2023-07-26
Posts: 56

Re: Can Xfce windows be set to close on top-left double-click instead of u

Thanks! It took me some time to locate the file and to figure out how to "reload" XFCE4, but it works! At least when I tested it just now with Mousepad. Very nice, but also very weird. It's as if it was intended to work like this, but had this minor bug which you fixed...

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 547.84 KiB (Peak: 548.69 KiB) ]