Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-01-11 08:52:18

sushi
Member
Registered: 2019-04-22
Posts: 81

Xfwm4, some windows won't centering.

Hello,

I have two windows (xfce4-weather-plugin properties & hdspmixer sound card mixer) that won't center even if the slider in windows manager is set to maximum. The first stays in the upper right corner and the second in the upper left corner. Is there any way to correct this "wrong" behavior ?

Thank you.

xprop xfce4-weather-plugin :

_NET_WM_ICON_GEOMETRY(CARDINAL) = 1335, 0, 40, 40
_NET_FRAME_EXTENTS(CARDINAL) = 1, 1, 26, 1
_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_STATE(WM_STATE):
        window state: Normal
        icon window: 0x398f0300
_NET_WM_DESKTOP(CARDINAL) = 0
_NET_WM_STATE(ATOM) = _NET_WM_STATE_MODAL
WM_HINTS(WM_HINTS):
        Client accepts input or input focus: True
        Initial state is Normal State.
        bitmap id # to use for icon: 0x1a011eb
        bitmap id # of mask for icon: 0x1a011f1
        window id # of group leader: 0x1a00001
_GTK_THEME_VARIANT(UTF8_STRING) = "dark"
XdndAware(ATOM) = BITMAP
_NET_WM_ICON(CARDINAL) =     Icon (48 x 48):


_NET_WM_OPAQUE_REGION(CARDINAL) = 0, 0, 651, 430
WM_TRANSIENT_FOR(WINDOW): window id # 0x1a00003
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DIALOG
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 27267561, 27267562
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x1a011e8
WM_CLIENT_LEADER(WINDOW): window id # 0x1a00001
_NET_WM_PID(CARDINAL) = 1054
WM_NORMAL_HINTS(WM_SIZE_HINTS):
        program specified location: 0, 0
        program specified minimum size: 651 by 410
        program specified base size: 0 by 0
        window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "wrapper-2.0", "Wrapper-2.0"
WM_ICON_NAME(STRING) = "Mise à jour météo"
_NET_WM_ICON_NAME(UTF8_STRING) = "Mise à jour météo"
WM_NAME(STRING) = "Mise à jour météo"
_NET_WM_NAME(UTF8_STRING) = "Mise à jour météo"

xprop hdspmixer :

_NET_WM_ICON_GEOMETRY(CARDINAL) = 1195, 0, 40, 40
_NET_FRAME_EXTENTS(CARDINAL) = 1, 1, 26, 1
_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_STATE(WM_STATE):
        window state: Normal
        icon window: 0x398f0300
_NET_WM_DESKTOP(CARDINAL) = 0
_NET_WM_STATE(ATOM) =
WM_COMMAND(STRING) = { "/usr/bin/hdspmixer" }
_NET_WM_ICON(CARDINAL) =     Icon (48 x 48)


WM_HINTS(WM_HINTS):
        Client accepts input or input focus: True
XdndAware(ATOM) = ATOM
WM_CLASS(STRING) = "FLTK", "FLTK"
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x0, 0x1, 0x1, 0x0, 0x0
WM_NORMAL_HINTS(WM_SIZE_HINTS):
        user specified location: 0, 0
        program specified minimum size: 72 by 20
        program specified maximum size: 504 by 497
        window gravity: Static
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW
WM_ICON_NAME(STRING) = "HDSPMixer (Hammerfall DSP) hdsp01.mix"
_NET_WM_ICON_NAME(UTF8_STRING) = "HDSPMixer (Hammerfall DSP) hdsp01.mix"
WM_NAME(STRING) = "HDSPMixer (Hammerfall DSP) hdsp01.mix"
_NET_WM_NAME(UTF8_STRING) = "HDSPMixer (Hammerfall DSP) hdsp01.mix"
_NET_WM_PID(CARDINAL) = 1220

Offline

#2 2022-01-11 09:49:51

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: Xfwm4, some windows won't centering.

What's the version of xfce4-panel and xfce4-weather-plugin? With 4.14.3-1 and 0.10.2-0ubuntu0.20.04.1, respectively, I can force its Properties dialog to open in the middle of the screen by simply moving it to the left side of my top panel.

Otherwise, devilspie is what you're looking for. Here are some of the topics that discuss window placement:
https://forum.xfce.org/viewtopic.php?id=15530
https://forum.xfce.org/viewtopic.php?id=15434
https://forum.xfce.org/viewtopic.php?id=15246

Last edited by KBar (2022-01-11 09:50:27)


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#3 2022-01-12 09:04:54

sushi
Member
Registered: 2019-04-22
Posts: 81

Re: Xfwm4, some windows won't centering.

Archlinux.
xfce4-weather-plugin : 0.11.0
xfce4-panel : 4.16.3-2

KBar wrote:

I can force its Properties dialog to open in the middle of the screen by simply moving it to the left side of my top panel.

I can too but it's not the place where I want it.

Thanks for your links but this sounds like a bug for me. If I need one more piece of software of every function that is supposed to work out of box, I never gonna end the story..!

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 535.2 KiB (Peak: 536.04 KiB) ]