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:

  1. find running browser instance.
  2. position & size browser specific location on display.
  3. position icon if/when application minimized.
  4. 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):

  1. xopendisplay, xquerytree, xgetwindowproperty
  2. xmoveresizewindow
  3. {not researched yet think can want window hint}
  4. 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 - xmoveresize etc... - 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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -