linux - XLIB - All attempts to draw on display surface fail with "BadRequest" -
due confidentiality agreements (defense sector work) cannot post real code. have been stumped weeks on problem - , have read every discussion thread can find on stackoverflow , everywhere else no avail. we're stumped on here , requesting advice or asking if has seen or beat issue.
basic overview of task is:
find , manipulate running firefox browser on specific display. need following:
- find running browser instance.
- position & size browser specific location on display.
- position icon if/when application minimized.
- implement "always on top" behavior browser - yes know no no in our specific case needed, expected, , ok.
in order implement above calling following x apis (in order of above):
xopendisplay,xquerytree,xgetwindowpropertyxmoveresizewindow- {not researched yet think can want window hint}
xraisewindow,xnextevent
the observed behavior is:
- any api not draw on display surface succeeds {except
xgetnextevent- crashes application} - all apis act on display surface directly -
xmoveresizeetc... - fail error code (1) "badrequest (invalid request code or no such operation)"
does have thought on might happening us? ideas appreciated!! additional info follows:
- x64 bit red hat enterprise linux 5.2
- nvidia graphics hardware
- xlib 7.1.1
thanx in advance assistance...
Comments
Post a Comment