GE window titel

Linux specific questions and discussion

GE window titel

Postby digiot » Sat Nov 02, 2013 10:18 am

Surely, you have noticed, that the GE window titel is set to "Unknown window"
when you are on Linux.
Don't know, what is displayed in the titelbar under Windows or Mac, maybe
they are more luxury...

For showing the programs name and the current document or tab under X,
the properties _NET_WM_VISIBLE_ICON_NAME (short titel) and
_NET_WM_VISIBLE_NAME (long titel) have to be set by the program.

I'm neighter an experienced C/Cpp coder, nor do I know much about X besides
it's name, but I hope, there is a feasible way to simply give at least the
name (short titel) to the _NET_WM_VISIBLE_ICON_NAME, if it's already declared
in the code.

It seems so, Xprop shows this here for the GE window:
Code: Select all
wim@cb11:~$ xprop
_NET_WM_ICON_GEOMETRY(CARDINAL) = 767, 6, 30, 24
WM_STATE(WM_STATE):
      window state: Normal
      icon window: 0x0
_NET_WM_DESKTOP(CARDINAL) = 4
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_MOVE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW, _OB_WM_ACTION_UNDECORATE
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 2, 2, 21, 5
_NET_FRAME_EXTENTS(CARDINAL) = 2, 2, 21, 5
_NET_WM_STATE(ATOM) =
_NET_WM_ICON(CARDINAL) =    Icon (48 x 48):
                                                  
                                                  
                                                  
     ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 
     ▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒ 
     ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒ 
     ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒ 
     ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒ 
     ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒ 
     ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒ 
     ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒ 
     ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒ 
     ▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒ 
     ▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒ 
     ▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒ 
     ▒                                          ▒ 
     ░                                          ▒ 
     ▒                                          ▒ 
     ▒                                          ▒ 
     ▒                                          ▒ 
     ▒                                          ▒ 
     ▒                                          ▒ 
     ▒                                          ▒ 
     ▒                                          ▒ 
     ▒                                          ▒ 
     ▒                                          ▒ 
     ▒                                          ▒ 
     ▒                                          ▒ 
     ▒                                          ▒ 
     ▒                                          ▒ 
     ▒                                          ▒ 
     ▒                                          ▒ 
     ▒                                          ▒ 
     ▒                                          ▒ 
     ▒                                          ▒ 
     ░                                          ▒ 
     ░                                          ▒ 
     ░                                          ░ 
     ░                                          ▒ 
     ▒                                          ▒ 
     ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 
     ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 
     ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 
     ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 
        ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   
                                                  
                                                  
                                                  


_OB_APP_TYPE(UTF8_STRING) = "normal"
_OB_APP_TITLE(UTF8_STRING) = "Unbenanntes Fenster"
_OB_APP_CLASS(UTF8_STRING) = "GameEditor"
_OB_APP_NAME(UTF8_STRING) = "GameEditor"
_OB_APP_ROLE(UTF8_STRING) =
_NET_WM_VISIBLE_ICON_NAME(UTF8_STRING) = "Unbenanntes Fenster"
_NET_WM_VISIBLE_NAME(UTF8_STRING) = "Unbenanntes Fenster"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
      program specified minimum size: 32 by 32
      program specified maximum size: 4096 by 4096
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW
WM_CLASS(STRING) = "GameEditor", "GameEditor"
WM_HINTS(WM_HINTS):
      Client accepts input or input focus: True

The problem is, I don't even can find the part of the GE code, where such
settings are done.

If someone here can give me any clue, I would look, if there is anything I
could try.

On my system, I'm helping me with this launcher script:
Code: Select all
#!/bin/bash
# Requires (M)awk and Wmctrl on your system.
#
# Fill in the correct path, where GE is
# stored on your system on line 12.
# When you are on a less powerful hardware,
# and GEs name is not displayed in the
# titelbar, give sleep a little more time
# on line 13.
#

(cd /path/to/GameEditor && ./gameEditorLinux) &
(sleep 0.1s &&
hex_GEWindow=$(wmctrl -lx | mawk '{if ( $3 == "GameEditor.GameEditor" ) hex_WID = $1}; END {print hex_WID}') &&
wmctrl -i -r ${hex_GEWindow} -N "GameEditor")

This sets the _NET_WM_NAME property.
Put it somewhere into your path on your system, make it executable, and you
can start GE just with "GE14.bash"(or whatever you name it), plus the windows
titelbar will display GEs name, GameEditor !

Inside the script, you have to fill in the path, where GE is stored on your
system.
Maybe, you have to increase the sleep a little, depends on your hardware.
User avatar
digiot
 
Posts: 211
Joined: Sat Mar 17, 2012 2:29 pm
Score: 7 Give a positive score

Re: GE window titel

Postby digiot » Fri Nov 08, 2013 11:28 am

Just noticed, when you start GE the first time, after booting the system, it does not work !

But when you start GE the second, or any further time, it does work.

Will see, where the problem lays.
User avatar
digiot
 
Posts: 211
Joined: Sat Mar 17, 2012 2:29 pm
Score: 7 Give a positive score


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest

cron