rubentrancoso
asked on
Trusted forward ? how to set it ou what?
I made a simple windows for XLib but a got this error. Goggling I found some references that point to some problems with trusted forward.
ToolKit: Window manager didn't set icon sizes - using default.
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 18 (X_ChangeProperty)
Value in failed request: 0x0
Serial number of failed request: 17
Current serial number in output stream: 23
This is to point where the program stop:
int fake_argc = 1;
char *fake_argv[] = { (char *)"programname\0", 0 };
XSetWMProperties(tk->getDi splay(), win, &windowName, &iconName, fake_argv, fake_argc, &size_hints, &wm_hints, &class_hints);
any idea?
ToolKit: Window manager didn't set icon sizes - using default.
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 18 (X_ChangeProperty)
Value in failed request: 0x0
Serial number of failed request: 17
Current serial number in output stream: 23
This is to point where the program stop:
int fake_argc = 1;
char *fake_argv[] = { (char *)"programname\0", 0 };
XSetWMProperties(tk->getDi
any idea?
Try fake_argc = 2.
ASKER
not yet...
ToolKit: Window manager didn't set icon sizes - using default.
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 18 (X_ChangeProperty)
Value in failed request: 0x0
Serial number of failed request: 17
Current serial number in output stream: 23
ToolKit: Window manager didn't set icon sizes - using default.
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 18 (X_ChangeProperty)
Value in failed request: 0x0
Serial number of failed request: 17
Current serial number in output stream: 23
ASKER
I changed the approach an now it work with a minimal to begin
http://tronche.com/gui/x/xlib-tutorial/prog-1.cc
http://tronche.com/gui/x/xlib-tutorial/prog-1.cc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
read(4, "# $Xorg: C,v 1.3 2000/08/17 19:"..., 4096) = 772
read(4, "", 4096) = 0
close(4) = 0
munmap(0xf7061000, 4096) = 0
uname({sys="Linux", node="localhost.localdomai
open("/home/trancoso/.Xdef
uname({sys="Linux", node="localhost.localdomai
write(3, "7\0\4\0\3\0 \3\2\0 \3\0\0\0\0H\1\32\0\2\0 \3\3\0 \3\24"..., 484) = 484
read(3, "\0\2\21\0\0\0\0\0\0\0\22\
open("/usr/X11R6/lib/X11/X
fstat64(4, {st_mode=S_IFREG|0444, st_size=36378, ...}) = 0
read(4, "! $Xorg: XErrorDB,v 1.3 2000/08/"..., 36378) = 36378
close(4) = 0
brk(0) = 0x9aa2000
brk(0x9ac5000) = 0x9ac5000
write(2, "X Error of failed request: BadV"..., 86X Error of failed request: BadValue (integer parameter out of range for operation)