zero size window with mutter-x11-frames
Affected version
- Fedora 37
- mutter main at commit cff631cb
- Wayland (but presumably the same under Xorg)
Bug summary
Some windows such as the file selection dialog in Motif appears to be of zero size.
Steps to reproduce
- Run NEdit (Motif based app)
- Select File → Open
What happened
The file selector window is nowhere to be seen. Actually, it is on screen, but with a size of 0×0.
What did you expect to happen
The file selector shows up
Relevant logs, screenshots, screencasts etc.
Screencast_from_2023-01-27_14-53-44
The issue does not occur in GNOME 43.
xprop
of the offending window:
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc, 0x0, 0xa3, 0x0, 0x88, 0x1, 0x0, 0x0, 0x25, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf4, 0x1, 0x0, 0x0, 0x90, 0x1, 0x50, 0x43, 0x16, 0x0, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb3, 0xb3, 0xb3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x0, 0x0, 0x0, 0xb0, 0x0, 0xd6, 0x1, 0x65, 0x0, 0x67, 0x0, 0xb0, 0x0, 0xd6, 0x1, 0x2e, 0x1, 0x41, 0x1, 0x50, 0x43, 0x17, 0x0, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb3, 0xb3, 0xb3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x0, 0x0, 0x0, 0xb0, 0x0, 0xb2, 0x0, 0x65, 0x0, 0x2e, 0x1, 0xd6, 0x1, 0xe9, 0x1, 0x65, 0x0, 0x2e, 0x1, 0x10, 0x43, 0x2, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2, 0x0, 0xe5, 0xe5, 0xe5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2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a9, 0x0, 0x41, 0x1, 0x30, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb0, 0x0, 0xd6, 0x1, 0x32, 0x1, 0x41, 0x1, 0x31, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xda, 0x1, 0xe9, 0x1, 0x65, 0x0, 0x2e, 0x1
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_DESKTOP(CARDINAL) = 0
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 37, 0
_GTK_EDGE_CONSTRAINTS(CARDINAL) = 170
_NET_WM_STATE(ATOM) = _NET_WM_STATE_SKIP_TASKBAR, _NET_WM_STATE_FOCUSED
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW
WM_TRANSIENT_FOR(WINDOW): window id # 0x2000179
_MOTIF_WM_MESSAGES(ATOM) = _MOTIF_WM_OFFSET
WM_PROTOCOLS(ATOM): protocols _MOTIF_WM_MESSAGES, WM_DELETE_WINDOW
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x4, 0xffffffff, 0xffffffff, 0x3, 0x50001
WM_CLIENT_LEADER(WINDOW): window id # 0x200000f
WM_LOCALE_NAME(STRING) = "en_GB"
WM_CLASS(STRING) = "FileSelect_popup", "NEdit"
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
window id # of group leader: 0x2000179
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified location: 1808, 0
program specified size: 500 by 400
program specified maximum size: 3815 by 1175
window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "t480s"
WM_NAME(STRING) = "Open File"
xwininfo
:
xwininfo: Window id: 0x20001e2 "Open File"
Absolute upper-left X: 983
Absolute upper-left Y: 307
Relative upper-left X: 10
Relative upper-left Y: 45
Width: 500
Height: 400
Depth: 24
Visual: 0x49
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x48 (installed)
Bit Gravity State: ForgetGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: yes
Map State: IsViewable
Override Redirect State: no
Corners: +983+307 -2357+307 -2357-493 +983-493
So it seems the X11 client (Motif) is appropriately setting a size.