2006-10-29 19:23:45 +00:00
|
|
|
This file lists TODO items for the compositing code.
|
|
|
|
|
2006-11-01 10:37:17 +00:00
|
|
|
See file HACKING for details on developing KWin, including building
|
|
|
|
the kwin_composite branch.
|
2006-10-29 19:23:45 +00:00
|
|
|
See effects/howto.* for a HOWTO on writting effects.
|
|
|
|
See documentation in source (mainly in scene.cpp) for description
|
2006-11-01 10:37:17 +00:00
|
|
|
of the design of the compositing framework.
|
2006-10-29 19:23:45 +00:00
|
|
|
|
|
|
|
TODO
|
|
|
|
=================================
|
|
|
|
|
|
|
|
* = not done, will be either done by me, or should be at least discussed first with me
|
|
|
|
+ = not done, I don't plan on doing it that soon
|
|
|
|
- in other words, these should be the best ones for you if you want to help
|
|
|
|
! = like +, but they should be relatively simple
|
|
|
|
- in other words, these should be the best if you want to get started with the code
|
2006-10-10 20:43:04 +00:00
|
|
|
/ = work in progress
|
|
|
|
? = should it be done?
|
|
|
|
|
|
|
|
|
2006-10-29 19:23:45 +00:00
|
|
|
General TODO
|
|
|
|
=================================
|
|
|
|
|
|
|
|
! XComposite overlay window
|
|
|
|
- X.Org 7.1 and newer have XComposite extension version 0.3, which allows
|
|
|
|
creating an overlay window to paint to instead of painting to the root window
|
|
|
|
- the code in glcompmgr for this is in HAVE_OVERLAYS, stealing primarily from
|
|
|
|
here should be better since it's simpler and the code so far has been
|
|
|
|
modelled more after glcompmgr
|
|
|
|
- the code in compiz for this is in USE_COW
|
|
|
|
! - use double-buffering with the overlay window - kwin already has code
|
|
|
|
for double-buffered destination drawable, but I haven't been able to test it
|
|
|
|
- should be only needed for OpenGL code, I think this doesn't matter for XRender
|
|
|
|
|
|
|
|
? alpha clear hack
|
|
|
|
+ - find out if it affects performance
|
|
|
|
+ - if yes, try to find a better way of solving the problem
|
|
|
|
! - since kompmgr has an option to make only the decoration transparent,
|
|
|
|
it should be possible to do the same here - if the window has alpha and a decoration
|
|
|
|
or if there should be only the decoration transparent, paint first the contents
|
|
|
|
and then the decoration - this should make it possible to paint the decoration
|
|
|
|
without the random alpha that is right now handled by the alpha hack
|
|
|
|
|
|
|
|
* don't add workspace damage in Toplevel::addDamage()
|
|
|
|
- instead add damage of windows to the screen only before doing the painting
|
|
|
|
- this should prevent repaints because of changing obscured windows
|
|
|
|
|
|
|
|
* wait for decoration repaints
|
|
|
|
- it is sometimes visible that the window contents are painted first and the decoration
|
|
|
|
only afterwards with a small delay
|
|
|
|
- maybe posted paint events need to be processed immediatelly, or maybe the compositing
|
|
|
|
code should not update the window until the decoration is finished painting
|
|
|
|
|
|
|
|
* handle XRandr changes
|
|
|
|
- output buffers and similar probably need recreating when the screen size changes
|
2006-10-10 20:43:04 +00:00
|
|
|
|
2006-10-29 19:23:45 +00:00
|
|
|
|
|
|
|
OpenGL TODO
|
|
|
|
=================================
|
|
|
|
|
|
|
|
+ Check/make it work with other gfx cards
|
2006-10-21 15:23:01 +00:00
|
|
|
- I've tested only with nvidia with the 9625 beta drivers and 8776 stable drivers so far
|
2006-10-10 20:43:04 +00:00
|
|
|
- I have absolutely no idea about other gfx cards, needs to be tested
|
2006-10-31 15:28:38 +00:00
|
|
|
- ati
|
|
|
|
! - does kwin_composite work there at all?
|
|
|
|
! - does glcompmgr work there at all? (even with the various switches in the source)
|
|
|
|
+ - make kwin_composite work there if it doesn't
|
|
|
|
- intel
|
|
|
|
! - does kwin_composite work there at all?
|
|
|
|
! - does glcompmgr work there at all? (even with the various switches in the source)
|
|
|
|
+ - make kwin_composite work there if it doesn't
|
2006-10-29 19:23:45 +00:00
|
|
|
+ - who knows what else
|
2006-10-10 20:43:04 +00:00
|
|
|
|
|
|
|
? Xgl support
|
|
|
|
- Compiz itself doesn't work when compiled with the libGL from nvidia,
|
|
|
|
it ships its own and links against it
|
2006-10-29 19:23:45 +00:00
|
|
|
? - might be worth trying to use that libGL as well
|
2006-10-10 20:43:04 +00:00
|
|
|
- it may be just because of the special libGL, but when testing with Xgl
|
|
|
|
it even seemed non-conformant - none of the provided configs had
|
|
|
|
GLX_RENDER_TYPE with GLX_RGBA_BIT even though required by GLX
|
|
|
|
and other funny things. Indeed, it may be just me being still pretty
|
|
|
|
clueless about these things.
|
2006-10-29 19:23:45 +00:00
|
|
|
? - is there a good reason to support Xgl? With the 9625 nvidia drivers
|
|
|
|
it seems to work fine without them and there's AIGLX
|
|
|
|
|
2006-10-10 20:43:04 +00:00
|
|
|
? AIGLX support
|
|
|
|
- no idea about this at all
|
2006-10-29 19:23:45 +00:00
|
|
|
+ - find out if it works
|
2006-10-10 20:43:04 +00:00
|
|
|
|
2006-10-29 19:23:45 +00:00
|
|
|
! when relying on extensions, detect that they are available
|
2006-10-10 20:43:04 +00:00
|
|
|
- some of the glcompmgr code probably depends on OpenGL/GLX extensions that may
|
|
|
|
not be always available, probably the same with compiz
|
2006-10-29 19:23:45 +00:00
|
|
|
! - find out which code relies on extensions and add checks
|
|
|
|
! - it seems that some systems (using older X.org?) will need local versions
|
|
|
|
of some #defines like GLX_TEXTURE_FORMAT_EXT
|
|
|
|
- Beryl has this code in beryl.h
|
2006-10-10 20:43:04 +00:00
|
|
|
|
2006-10-29 19:23:45 +00:00
|
|
|
+ sync to vblank
|
2006-10-21 16:50:13 +00:00
|
|
|
- currently the compositing code is run with 20ms timer, i.e. constant 50fps
|
|
|
|
- the GLX_SGI_video_sync extension should be used
|
|
|
|
- compiz uses this, no idea about it though
|
|
|
|
|
2006-10-29 19:23:45 +00:00
|
|
|
+ GL_ARB_texture_rectangle vs GL_ARB_texture_non_power_of_two
|
2006-10-21 16:50:13 +00:00
|
|
|
- code currently uses GL_ARB_texture_rectangle (GL_TEXTURE_RECTANGLE_ARB), using
|
|
|
|
normal textures when GL_ARB_texture_non_power_of_two is available should(?) be
|
|
|
|
preferred
|
|
|
|
|
2006-10-21 13:11:23 +00:00
|
|
|
? in SceneOpenGL::bindTexture() with tfp_mode, with some gfx cards it seems
|
|
|
|
to be faster to not short-circuit the texture binding when there's been
|
|
|
|
no damage
|
2006-10-29 19:23:45 +00:00
|
|
|
+ - confirm and try to find out when to do it and when not
|
|
|
|
|
|
|
|
! update only those parts of the screen that have been changed
|
|
|
|
- for paintSimpleScreen() - it currently sets region to the whole screen
|
|
|
|
! - instead of using glXSwapBuffers() there should be glCopyPixels() used
|
|
|
|
- compiz has such code in evenLoop() in the if() block for COMP_SCREEN_DAMAGE_REGION_MASK
|
|
|
|
+ - perhaps syncing to vblank will be needed to avoid flicker
|
|
|
|
! - XCopyArea() should not update the whole screen but only the affected areas
|
2006-10-22 10:15:19 +00:00
|
|
|
|
2006-10-29 19:23:45 +00:00
|
|
|
|
|
|
|
XRender TODO
|
|
|
|
==============================
|
|
|
|
|
|
|
|
+ SceneXrender::Window::performPaint() doesn't use xScale/yScale
|
2006-10-22 10:15:19 +00:00
|
|
|
- XRenderSetPictureTransform() should be capable of doing this
|
|
|
|
- note that the matrix used seems to be weird (it doesn't act like the normal transformation
|
|
|
|
matrix as far as I can tell)
|
2006-10-24 19:17:48 +00:00
|
|
|
|
2006-10-29 19:23:45 +00:00
|
|
|
|
|
|
|
Effects framework TODO
|
|
|
|
==============================
|
|
|
|
|
|
|
|
/ design framework for graphical effects
|
|
|
|
- modelling it after compiz seems to make a lot of sense
|
|
|
|
|
2006-10-24 19:17:48 +00:00
|
|
|
* solve somehow disappearing windows
|
|
|
|
- i.e. when a window is e.g. closed, the Client/Unmanaged object is destroyed, but animations
|
|
|
|
should be going on
|
2006-10-29 19:23:45 +00:00
|
|
|
? - maybe animations could be done actually before the state change, it makes sense to destroy
|
2006-10-24 19:17:48 +00:00
|
|
|
the window only after it's finished exploding or really minimizing the window only after
|
|
|
|
the animation of minimizing to the taskbar is done, however this looks very hairy
|
|
|
|
and error-prone
|
2006-10-29 19:23:45 +00:00
|
|
|
? - maybe the animation effects should keep the necessary info themselves, so that the object
|
2006-10-24 19:17:48 +00:00
|
|
|
can be destroyed
|
|
|
|
- the problem here may be what to do when the window again reappears, a new object will
|
|
|
|
be created, but the old animation should be stopped - compare window id's?
|
2006-10-29 19:23:45 +00:00
|
|
|
- another problem is that then the window won't exist at all in the scene functions,
|
|
|
|
so e.g. no paintWindow() will be called for it
|
|
|
|
? - maybe just keep the object around in a special list
|
|
|
|
|
|
|
|
* more notification functions for effects are needed
|
|
|
|
- currently there are only very few notification functions (windowAdded, windowActivated,...)
|
|
|
|
! - virtual desktop change
|
|
|
|
! - window state changes
|
|
|
|
? more
|
|
|
|
|
|
|
|
* shadows
|
|
|
|
|
|
|
|
* support for effects involving more virtual desktops
|
|
|
|
- currently effects are limited to only the active virtual desktop
|
|
|
|
|
|
|
|
* support for grabbing input
|
|
|
|
- during some more complicated effects, input (at least mouse) should be disabled,
|
|
|
|
because currently there is no way to do input redirection
|
|
|
|
|
|
|
|
|
|
|
|
Effects TODO
|
|
|
|
===============================
|
|
|
|
|
|
|
|
+ adapt the kcontrol module used by Kompmgr
|
|
|
|
- in kcmkwin/kwinoptions
|
|
|
|
! - uses ~/.xcompmgr, convert to use normal KConfig
|
|
|
|
? - I don't think these effects should be plugins or anything like that,
|
|
|
|
probably simply write to kwinrc and use the Option class in KWin
|
|
|
|
|
|
|
|
+ implements all effects Kompmgr could do
|
|
|
|
+ - all effects from the Opacity tab should be already doable
|
|
|
|
! - applying translucency only to the decoration
|
|
|
|
- use clientSize() and clientPos() from Client
|
|
|
|
- see also the alpha clear hack todo entry
|
|
|
|
! - not usign ARGB visuals
|
|
|
|
- just clear the alpha channel in the alpha clear hack
|
|
|
|
- or do it while painting (see also the alpha clear hack todo entry)
|
|
|
|
! - the rest - should be simple
|
|
|
|
* - shadows
|
|
|
|
- framework is not ready for them yet (see the todo entry)
|
|
|
|
+ - tab Effects
|
|
|
|
! - fade-in should be simple
|
|
|
|
+ - fade between changes
|
|
|
|
- will need notification about opacity changes
|
|
|
|
- not sure if this is doable for other opacity changes then the ones
|
|
|
|
initiated by the user or by the application
|
|
|
|
* - fade-out needs framework for disappearing windows (see the todo entry)
|
|
|
|
|
|
|
|
+ minimize/shade effects
|
|
|
|
- to replace the ones from KWin core
|
|
|
|
- Client::animateMinimizeOrUnminimize()
|
|
|
|
- Client::setShade()
|
|
|
|
|
|
|
|
+ zoom effect
|
|
|
|
- enlarge a portion of the screen
|
|
|
|
! - would require adding xScale/yScale to ScreenPaintData
|
|
|
|
- should be doable even for XRender
|
|
|
|
|
2006-11-01 14:46:24 +00:00
|
|
|
+ logout effect
|
|
|
|
- should be triggered by ksmserver somehow
|
|
|
|
|
2006-10-29 19:23:45 +00:00
|
|
|
? other effects
|