You know. its funny but I just managed to do exactly the same thing on the touch.
for some reason a window named
xwininfo: Window id: 0x1400002 "L:A_N:application_ID:xgnuboy_PC:N"
Does not display topmost without forcing via wmctrl.
and it also does not receive input from the keyboard.
odd. perhaps there is some element that is not being set in code correctly.
I currently have this:
Code:
void vid_settitle(char *title)
{
// XStoreName(x_display, x_win, title);
XStoreName(x_display, x_win, "L:A_N:application_ID:xgnuboy_PC:N");
XSetIconName(x_display, x_win, "L:A_N:application_ID:xgnuboy_PC:N");
}
which looks okay to me.
any thoughts : )
EDIT: I shoved it in a tidy
Code:
snprintf(buf, sizeof buf, "%s%s", "L:D_N:application_ID:", rom.name);
Am i setting the property correctly?
http://h30097.www3.hp.com/docs/base_...UP/XWINSYS.PDF Section 9_9
Spoiler:
Quote:
9.1.4 Setting and Reading the WM_NAME Property
Xlib provides convenience functions that you can use to set and read the WM_NAME
property for a given window.
To set a window’s WM_NAME property with the supplied convenience function, use
XSetWMName.
Code:
void XSetWMName(display, w, text_prop)
Display *display;
Window w;
XTextProperty *text_prop;
display Specifies the connection to the X server.
w Specifies the window.
text_prop Specifies the XTextProperty structure to be used.
The XSetWMName convenience function performs a XSetTextProperty on the
WM_NAME property (see section 9.1.3).
To read a window’s WM_NAME property with the supplied convenience function, use
XGetWMName.
Code:
Status XGetWMName(display, w, text_prop_return)
Display *display;
Window w;
XTextProperty *text_prop_return;
display Specifies the connection to the X server.
w Specifies the window.
text_prop_return Returns the XTextProperty structure.
The XGetWMName convenience function performs an XGetTextProperty on the
WM_NAME property (see section 9.1.3).
The following two functions have been superseded by XSetWMName and XGetWMName, respectively. You can use these additional convenience functions for window names that are encoded as STRING properties.
To assign a name to a window, use XStoreName.
Code:
XStoreName(display, w, window_name)
Display *display;
Window w;
char *window_name;
display Specifies the connection to the X server.
w Specifies the window.
window_name Specifies the window name, which should be a null-terminated string.
The XStoreName function assigns the name passed to window_name to the specified window. A window manager can display the window name in some prominent place, such as the title bar, to allow users to identify windows easily. Some window managers may display a window’s name in the window’s icon, although they are encouraged to use the window’s icon name if one is provided by the application.
XStoreName can generate BadAlloc and BadWindow errors...
Snip.
|
Looks right to me. Erm. Any clues?