The i3 FAQ has migrated to https://www.reddit.com/r/i3wm/. All content here is read-only.
Ask Your Question
0

How to match window without title

asked 2015-08-12 16:59:03 +0000

Nikolaus Rath gravatar image

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-08-13 01:18:45 +0000

Airblader gravatar image

Ultimately, there may not be an easy way to fix this. We are aware of this and a number of people have reported this in the case of Matlab already.

The only fix is Matlab not doing this trash. These properties are there for a reason and Matlab should give them reasonable values.

There is hopefully already a bug against Matlab given that many other people have reported this. I suggest finding and supporting it. There isn't really anything we can do from the i3 side.

edit flag offensive delete link more

Comments

1

Yes, I reported it a while ago. For some reason they are unwilling to add this to the public Matlab bug list. In case anyone else want to press this, the Matlab internal reference number for this issue is ` [ ref:_00Di0Ha1u._500i0P8AhA:ref ]`

Nikolaus Rath gravatar imageNikolaus Rath ( 2015-08-14 17:06:28 +0000 )edit

Cool, thanks for the reference. It's a shame they want to keep this secret. It's a shame they keep any bug secret, really. Oracle's doing the same shit.

Airblader gravatar imageAirblader ( 2015-08-14 18:45:28 +0000 )edit
1

There is finally a public bug report about this. The description isn't really capturing the root of the problem, but Mathworks is aware that the described behavior is due to wrong window manager hints: https://www.mathworks.com/support/bugreports/1270423

Nikolaus Rath gravatar imageNikolaus Rath ( 2015-09-24 14:58:33 +0000 )edit

That's cool. The link doesn't work for me, though?

Airblader gravatar imageAirblader ( 2015-09-24 18:02:09 +0000 )edit

Question Tools

Stats

Asked: 2015-08-12 16:59:03 +0000

Seen: 111 times

Last updated: Aug 13