The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

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):

        window state: Normal
        icon window: 0x0
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
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x1, 0x0, 0x0, 0x0
        Client accepts input or input focus: True
        Initial state is Normal State.
        window id # of group leader: 0x2600004
        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

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

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



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

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:

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


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

Seen: 111 times

Last updated: Aug 13