Tiling of xfce4-settings app

I noticed, that I cannot tile the xfce4-settings app on my MX Linux 25.3 XFCE (version XFCE 4.2) system when moving the window with the mouse to the screen edges or pressing the keyboard shortcuts.

Can I change that so that it is possible to tile the xfce4-settings window because it is a really frequent used app? The xfce4-settings-manager is version 4.20.1.

In Zorin 18.1 Lite which uses the same xfce4 settings manager version, I can tile the settings app window, because of this I'm wondering if I can adapt the behavior of the app (the other apps which I have tested worked as they should).

Perhaps the Zorin developers have changed something? I tested Xubuntu 24.04, 26.04 and Debian 13 XFCE in distrosea, and in all the settings app didn't tile.

If Zorin has specified a different window type for the app, could I change that in MX Linux without recompiling?

I checked it with the command xwininfo -wm:
In Zorin 18.1 Lite, the window type of the settings app is "normal", in MX Linux it is "dialog".
When you install xfce4 desktop on Zorin 18 Core, the window type is "dialog", too.
Is it possible to change the window type to "normal"?

I found a very old thread about that topic in internet, but the command mentioned there still worked as non-permanent fix:

xprop -f _NET_WM_WINDOW_TYPE 32a -set _NET_WM_WINDOW_TYPE _NET_WM_WINDOW_TYPE_NORMAL

You enter it in terminal, mark the opened settings app with the cursor, and then the settings app's window behaves like a normal window and tiles.

I want to find out how I can make that permanent.

Does someone know: is it hardcoded into Zorin Lite, or have the developers made a fix (with devilspie, wmctl or similar...)?

@littlekun Do you have an idea how I can make this? Is it possible, for example, to create an autostart entry that, as soon as the Xfce4 Settings Manager is launched, orders xdotool to select the window and then instructs xprop to change the window type?

What is your terminal output for

xprop _NET_WM_WINDOW_TYPE _NET_WM_ALLOWED_ACTIONS WM_NORMAL_HINTS WM_CLASS

In Window Manager Tweaks > Accessibility, is Edge Snapping enabled?
Is the Placement tab set to Center?

The terminal output is:

_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DIALOG
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_STICK
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		program specified minimum size: 516 by 124
		program specified base size: 0 by 0
		window gravity: NorthWest
WM_CLASS(STRING) = "xfce4-settings-manager", "Xfce4-settings-manager"

And yes, both settings are set this way in window manager tweaks. All other apps which are normal windows work perfectly with tiling.

What happens if you set it to "normal"?

xprop -id $(xdotool getactivewindow) -f _NET_WM_WINDOW_TYPE 32a -set _NET_WM_WINDOW_TYPE _NET_WM_WINDOW_TYPE_NORMAL

With this command it did not work, but when I use

xprop -f _NET_WM_WINDOW_TYPE 32a -set _NET_WM_WINDOW_TYPE _NET_WM_WINDOW_TYPE_NORMAL

and select the settings app window, then the tiling works fine and the window type is changed to a normal window.

Can you just set it using that one, then? Is it persistent?

I played a bit with various commands. This one worked when the settings app is already opened to select it automatically and to change its window type:

xprop -f _NET_WM_WINDOW_TYPE 32a -id $(wmctrl -l | grep -i Einstellungen | awk '{print $1}') -set _NET_WM_WINDOW_TYPE _NET_WM_WINDOW_TYPE_NORMAL

(The German word "Einstellungen" is required, otherwise it doesn´t work, but I'm not sure if it leads to problems with other apps)

No, that is the problem. It is not persistent. As soon as I close the app, next time it doesn´t work.

Yeah, so when the window destructs... got it.
Well, you could set a small script, that runs everytime you open that window. Or use Devilspie2.

As it is similar to a popover or a popup window, I suspect that is why it is set as a Dialog class.

I tried it yesterday with A.I. help and devilspie2, but the file didn´t work.
With these commands in autostart, it works, but then the settings app is always opened at startup. And when you close the settings app, the window type is changed back to dialog and the tiling no longer works.

I´d like to find a solution that the settings app is only launched when I need it.

I use devilspie for a variety of tasks, it works. I think the A.I. may have just given some bad instructions. Shocking...

In ~/.config/devilspie2, set your file settings.lua

in that settings file, try:

if get_window_class() == "xfce4-settings-manager" then
    os.execute(
        "xprop -id " .. get_window_xid() ..
        " -f _NET_WM_WINDOW_TYPE 32a" ..
        " -set _NET_WM_WINDOW_TYPE _NET_WM_WINDOW_TYPE_NORMAL"
    )
end

In terminal start it:

devilspie2 &

Launch XFCE4 Settings, then... Check with a left click:

xprop _NET_WM_WINDOW_TYPE

If working, set devilspie2 as autostart instead of the script or command.

2 Likes

Unfortunately, it does not work. The window is still shown as dialog window. I also tried to make the file executable, but no success.

What version did you install?

which devilspie2

/usr/bin/devilspie2

devilspie2 0.43-5+b1

Do I need a header line as for scrips with #!/bin/bash ...?

No, you don't; this is a lua.
Maybe it needs to be more robust about getting the window... Try:

local class = get_window_class()
local app   = get_application_name()

if class == "Xfce4-settings-manager"
   or class == "xfce4-settings-manager"
   or app == "Settings"
   or app == "xfce4-settings-manager" then

    if get_window_type() == "WINDOW_TYPE_DIALOG" then
        set_window_type("WINDOW_TYPE_NORMAL")
        debug_print("xfce4-settings-manager: changed type to NORMAL")
    end
end
1 Like

This works :grinning_face:

I added devilspie2 to autostart, now it is working fine. Thank you very much, Aravisian!

Among the settings accessible through the xfce4 settings manager, many are dialog windows, while some are normal windows. However, this is the same in Zorin. But the xfce4 settings manager is the main app and it is fine that it has a normal window now.

1 Like

I´d like to know why it is a normal window in Zorin. I took a look at the file here:
xfce4-settings_4.20.1.orig.tar.bz2
and there is the window set (as in all other distributions I checked recently) as a dialog window.

So, where does the normal window come from?
Is it the original source file and the Zorin developers have edited it later before compiling?
Or is there another method to change the window type implemented?
Neither devilspie2 nor xdotool nor wmctrl are preinstalled on Zorin Lite.