How to match window without title
I'm trying to work around missing window manager hints in Matlab windows using the for_window
directive, but I'm running into some problems. Here is the xprop output for the "window" I'd like to be floating (this is actually a command-completion dialog):
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 39845990
_NET_WM_USER_TIME(CARDINAL) = 644288
XdndAware(ATOM) = BITMAP
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0
WM_CLIENT_LEADER(WINDOW): window id # 0x2600004
_NET_WM_PID(CARDINAL) = 3661
_NET_WM_WINDOW_TYPE(ATOM) = _KDE_NET_WM_WINDOW_TYPE_OVERRIDE, _NET_WM_WINDOW_TYPE_NORMAL
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x1, 0x0, 0x0, 0x0
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_NAME(STRING) =
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLASS(STRING) = "", ""
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
window id # of group leader: 0x2600004
WM_NORMAL_HINTS(WM_SIZE_HINTS):
user specified location: 1203, 551
program specified location: 1203, 551
user specified size: 428 by 308
program specified size: 428 by 308
program specified minimum size: 428 by 0
program specified maximum size: 428 by 16383
window gravity: Static
WM_CLIENT_MACHINE(STRING) = "nelarikon"
WM_COMMAND(STRING) = { }
In other words, this window has neither class, nor instance, nor title. I thought this was going to be easy to match with:
for_window [class="^$" instance="^$" title="^$"] floating enable
but it turns out this doesn't match. If I remove the title
component, the window is matched (so I guess a window without title is different from a window with an empty title), but merely matching for empty class and instance also applies to a number of other windows (that I don't want to be floating).
What is the best way to match this window?
I've put the i3-dump-log output when the window appears on http://pastebin.com/CWxbnEns.