Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taskbar does not display Minetest #1976

Closed
hoodedice opened this issue Dec 15, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@mariospr

This comment has been minimized.

Copy link

commented Dec 15, 2014

This seems to be a problem of not having WM_CLASS properly set:

xprop -name "Minetest [Main Menu]"
_NET_WM_STATE(ATOM) = 
WM_STATE(WM_STATE):
        window state: Normal
        icon window: 0x0
_NET_FRAME_EXTENTS(CARDINAL) = 1, 1, 32, 1
_NET_WM_DESKTOP(CARDINAL) = 0
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW
WM_ICON_NAME(STRING) = "Minetest [Main Menu]"
WM_NAME(STRING) = "Minetest [Main Menu]"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW

If I execute xprop -name "Minetest [Main Menu]" -format WM_CLASS 8s -set WM_CLASS "Minetest", then I can see both the icon and the "Minetest" string in the taskbar and that task switcher (e.g. Alt+Tab).

@mariospr

This comment has been minimized.

Copy link

commented Dec 15, 2014

I few bits of information more, after my findings looking in other irrlicht-powered games (SuperTuxKart) and poking on #irrlicht:

<msanchez> hi, is there a way to set the WM_CLASS string from an app using irrlicht, from linux?
<msanchez> I've checked the code of SuperTuxKart and I can see they use XSetClassHint() for that, right before calling setWindowCaption()
<msanchez> and so I wonder whether there could be a better way to do it, trough irrlicht itself 
<entity> not sure what that WM_CLASS hint is used for
<entity> but yeah, since it's platform specific, irrlicht probably doesn't provide anything to manipulate it
<msanchez> in some desktops like Unity and GNOME Shell, WM_CLASS is used to group different windows together
<msanchez> so that you get the right icon/name in the taskbar / task switcher
<entity> right
<msanchez> I found this problem through minetest today: https://github.com/minetest/minetest/issues/1976
<entity> nah, irrlicht won't do anything about that
<msanchez> ok, thanks for confirming

It seems to me that a fix in minetest would be needed then. Comments?

@mariospr

This comment has been minimized.

Copy link

commented Dec 15, 2014

This commit in master fixed the issue for me: kwolekr@8661b35

Thanks, kwolekr!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.