Two simple questions related to the following puzzling behaviour:
I have the following line of code:
where _display_p is a valid Display* returned from XOpenDisplay() and ks has the value 103 (which was returned by XStringToKeysym(), and corresponds to 'g').
The above line of code hangs indefinitely; I have to kill the job manually.
Question #1: why is this happening? I can't see anything in any documentation that suggests that XKeysymToKeycode() can ever fail to return.
Hello!
Im running tight VNC on Red Hat Enterprise Linux 4.0.
How can I increase the number of X clients that I can run
in a VNC session?I need to run aproximately 500 programs in one VNC session,
but at this time I can only 236 -> i've tryed to launch 250 xclock's in background
and when it... (3 Replies)
Hello!
Im running tight VNC on Red Hat Enterprise Linux 4.0.
How can I increase the number of X clients that I can run
in a VNC session?I need to run aproximately 500 programs in one VNC session,
but at this time I can only 236 -> i've tryed to launch 250 xclock's in background
and when it... (0 Replies)
I don't know if it is right to ask you this. Can someone help me write a simple Xlib program,with button on it,and all that button do is switch 2 messages.
I have tried and tried,but never get past Hello World. Can someone help me please?
---------- Post updated at 10:17 PM ---------- Previous... (2 Replies)
Hi,
I am handling user issues in my team. Users have their Unix session running on Citrix MFU.
Recently, I was suppose to address a user issue which is as below:
Gets the below error when tries to open nedit:
Xlib: connection to ":165.0" refused by server
Xlib: Client is not... (1 Reply)
1. If there's some better place where xlib experts hang out, please tell me. Despite an assiduous search, I could not find an xlib reflector.
2. My actual question:
In an xterm, I want to grab and process all keyboard events in a program running inside the xterm. For example, with my program... (5 Replies)
Hey guys!
First of all english is not my main language so sorry for any english mistakes.
Im from Portugal!
1. The problem statement, all variables and given/known data:
Im having a problema creating and array of structs for a work i need to do. (xLib)
2. Relevant commands, code,... (1 Reply)
hey,
Im new to the linux world. Lately, I have tried to create a glx window with xlib, making it a popup window(fullscreen) so I set override_redirect to true. Im happy with the removed borders, but apparantly, the application doesnt show up in the left bar in ubuntu, neither when I press alt... (4 Replies)
Hello,
i'm trying to show the Image of an monochrome webcam in an xlib-Window.
initializing of the window:
if (NULL == ((*XWindow)->display = XOpenDisplay(NULL))) APPLICATION_Set_Error(V4LCamera->Application, XWINDOW, "failed to open display", 123, -1, APPLICATION_ERROR_MESSAGE);
... (1 Reply)
Hello,
I just try to get the control of a Window by searching his name. I curretly do that :
Window CMD::window_from_name_search(Display *display, Window current, char const *needle)
{
Window retval, root, parent, *children;
unsigned children_count;
char *name = NULL;
... (0 Replies)
Hello,
I was just wondering why XGetGeometry() would cause a hang in an application.
In the xlib book it says any of there "Get" functions don't necessarily return immediately.
Is there a way to make a it return immediately or other functions that will give me the same results.
I... (1 Reply)
Discussion started by: TMurray77
1 Replies
LEARN ABOUT X11R4
xkeycodetokeysym
XStringToKeysym(3) XLIB FUNCTIONS XStringToKeysym(3)NAME
XStringToKeysym, XKeysymToString, XKeycodeToKeysym, XKeysymToKeycode, XConvertCase - convert keysyms
SYNTAX
KeySym XStringToKeysym(char *string);
char *XKeysymToString(KeySym keysym);
KeySym XKeycodeToKeysym(Display *display, KeyCode keycode, int index);
KeyCode XKeysymToKeycode(Display *display, KeySym keysym);
void XConvertCase(KeySym keysym, KeySym *lower_return, KeySym *upper_return);
ARGUMENTS
display Specifies the connection to the X server.
index Specifies the element of KeyCode vector.
keycode Specifies the KeyCode.
keysym Specifies the KeySym that is to be searched for or converted.
lower_return
Returns the lowercase form of keysym, or keysym.
string Specifies the name of the KeySym that is to be converted.
upper_return
Returns the uppercase form of keysym, or keysym.
DESCRIPTION
Standard KeySym names are obtained from <X11/keysymdef.h> by removing the XK_ prefix from each name. KeySyms that are not part of the Xlib
standard also may be obtained with this function. The set of KeySyms that are available in this manner and the mechanisms by which Xlib
obtains them is implementation-dependent.
If the KeySym name is not in the Host Portable Character Encoding, the result is implementation-dependent. If the specified string does
not match a valid KeySym, XStringToKeysym returns NoSymbol.
The returned string is in a static area and must not be modified. The returned string is in the Host Portable Character Encoding. If the
specified KeySym is not defined, XKeysymToString returns a NULL.
The XKeycodeToKeysym function uses internal Xlib tables and returns the KeySym defined for the specified KeyCode and the element of the
KeyCode vector. If no symbol is defined, XKeycodeToKeysym returns NoSymbol.
If the specified KeySym is not defined for any KeyCode, XKeysymToKeycode returns zero.
The XConvertCase function returns the uppercase and lowercase forms of the specified Keysym, if the KeySym is subject to case conversion;
otherwise, the specified KeySym is returned to both lower_return and upper_return. Support for conversion of other than Latin and Cyrillic
KeySyms is implementation-dependent.
SEE ALSO XLookupKeysym(3X11)
Xlib - C Language X Interface
X Version 11 libX11 1.2.1 XStringToKeysym(3)