Menu

#7 OTK helloworld.c: artifacts with compositing window managers

v1.0_(example)
closed-fixed
nobody
None
5
2014-07-03
2013-09-16
No

helloworld.c sample application (from the project's main page) builds and runs fine, but shows rather annoying artifacts when run (in Unix environment) together with compositing window manager: the window area will become black e.g. when changing focus (100% reproducible if your compositor changes window opacity on inactivity) or moved around (reproducible even with xcompmgr): during the move, window area becomes black.

Once compositor (xcompmgr, compton, etc.) is killed, OTK application starts to behave fine (e.g. no blackouts visible anymore), window contents is retained when moved.

Discussion

  • kindman

    kindman - 2014-07-03

    I think this may have been fixed in the 0.96 version which defaults to no-hardware-acceleration. You can turn hardware-acceleration ON if you wish. With hardware acceleration the displays look nicer and respond faster. It does better OpenGL anti-aliasing. But apparently it is not as uniformly supported, and may cause problems on some systems. It may be driver libraries or graphic board issues. Whatever the reason, we now default to OFF for reliable operation on all systems. To activate hardware accelerated anti-aliasing, call otk_set_multisamp(4); before calling OtkInitWindow(...).

     
  • kindman

    kindman - 2014-07-03
    • status: open --> closed-fixed
     

Log in to post a comment.