Bug 161140

Summary: Automatic composite disabling/enabling when OpenGL application started
Product: [Plasma] kwin Reporter: Roman Šmakal <schmaker>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Roman Šmakal 2008-04-22 10:49:53 UTC
Version:            (using KDE 4.0.3)
Installed from:    Ubuntu Packages
OS:                Linux

Hello,
it will be great, if KDE will have some OpenGL detection and then he will stop desktop acceleration (composite?). It will stop making problems with 3D games and games in Wine. I think it is easiest way to stop OpenGL artifacts in games.
Comment 1 Christian Parpart 2008-04-22 12:26:25 UTC
it is possible to hook those functions responsible for creating an OpenGL window on libX11 level, however, to achieve that, you'd have to LD_PRELOAD a library that does that, and then informs (dbus/rpc/...) other processes about this event.

However, this is *hackery*, and I guess a better approach would be to have a hook API for that registered in the libX11 library.

but as we speak of window managers, which get already informed when windows get created (and mapped) onto the screen - is it also possible to retrieve the info on wether this window is a 3d accelerated window/widget??? if yes, that would make things much easier, and implementing a (configurable!) switch to your which would be easily possible - does someone know how?
Comment 2 Lubos Lunak 2008-04-22 12:41:09 UTC

*** This bug has been marked as a duplicate of 155581 ***