2006-10-29 19:23:45 +00:00
|
|
|
This file lists TODO items for the compositing code.
|
|
|
|
|
2006-11-24 22:20:14 +00:00
|
|
|
See file COMPOSITE_HOWTO for setting up kwin_composite.
|
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-11-23 21:16:49 +00:00
|
|
|
% = should be probably done later, during cleanups and preparations for being stable
|
2006-10-10 20:43:04 +00:00
|
|
|
|
|
|
|
|
2006-10-29 19:23:45 +00:00
|
|
|
General TODO
|
|
|
|
=================================
|
|
|
|
|
|
|
|
? 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
|
2007-01-15 15:20:59 +00:00
|
|
|
* - also, provide a call to just mark a window as needing repaint but not being damaged
|
|
|
|
- this will prevent rebinding the pixmap or updating the texture
|
|
|
|
- http://lists.kde.org/?l=kwin&m=116836151626848&w=2
|
2006-10-29 19:23:45 +00:00
|
|
|
|
|
|
|
* 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
|
|
|
|
|
2006-11-04 12:26:59 +00:00
|
|
|
! compile even without OpenGL or XRender
|
|
|
|
- kwin_composite currently requires both OpenGL and XRender to build
|
|
|
|
- compiling without either results in compile errors, needs to be fixed
|
|
|
|
! - scene_xrender.cpp also requires XFixes
|
|
|
|
! - check whether it compiles fine without XComposite/XDamage
|
|
|
|
|
2006-11-11 11:38:59 +00:00
|
|
|
? Expose events for overlay window - is it necessary to track it, like with root window?
|
|
|
|
|
2006-11-23 21:16:49 +00:00
|
|
|
% paint throttling
|
|
|
|
- there's 5ms grace period per repaint to avoid overloading the system with just compositing
|
|
|
|
and not letting the system do anything else - check and evaluate
|
|
|
|
|
2007-01-12 09:44:22 +00:00
|
|
|
+ support for new window types from the wm spec for compositing
|
2007-01-12 09:45:02 +00:00
|
|
|
- this will have to be done in Qt, kdecore and kwin
|
2007-01-12 09:44:22 +00:00
|
|
|
|
2007-01-15 18:03:04 +00:00
|
|
|
* handle properly stacking order of deleted windows for showing in effects
|
|
|
|
|
|
|
|
* handle properly deleted windows that reappear (windowReadded() function?)
|
|
|
|
|
2007-01-22 22:51:30 +00:00
|
|
|
/ consider using an extra class for representing deleted windows
|
2007-01-15 21:52:41 +00:00
|
|
|
- cleaning up Client/Unmanaged instances may still leave e.g. timers around if they're overlooked
|
|
|
|
- an extra class could copy some interesting data and "replace" the old instance
|
|
|
|
|
2007-01-22 22:51:30 +00:00
|
|
|
+ Deleted::windowType() does not work
|
|
|
|
|
2007-02-02 15:31:57 +00:00
|
|
|
% during screensaving, do no let non-screensaver windows show above screensaver
|
|
|
|
- kdesktop_lock watches for such things and raises again, but there's a small gap
|
|
|
|
|
2007-02-05 11:35:54 +00:00
|
|
|
% nvidia drivers by default use fake refresh rates as a workaround for some X limitations
|
|
|
|
- see the DynamicTwinView section in nvidia README
|
|
|
|
- this makes KWin repaint at a different rate than it should
|
|
|
|
|
2006-10-29 19:23:45 +00:00
|
|
|
|
|
|
|
OpenGL TODO
|
|
|
|
=================================
|
|
|
|
|
2007-02-05 11:19:22 +00:00
|
|
|
/ Check/make it work with other gfx cards
|
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-11-23 21:16:49 +00:00
|
|
|
+ AIGLX support
|
|
|
|
- kind of works, needs more work
|
2006-11-24 22:46:59 +00:00
|
|
|
+ - it needs indirect rendering, should be autodetected and disabled somehow
|
|
|
|
% - may require LIBGL_ALWAYS_INDIRECT set with older X.org
|
|
|
|
(http://lists.kde.org/?l=kwin&m=116439615124838&w=2)
|
2006-12-07 14:01:21 +00:00
|
|
|
(http://lists.freedesktop.org/archives/xorg/2006-December/020323.html)
|
2006-10-10 20:43:04 +00:00
|
|
|
|
2007-01-24 21:35:58 +00:00
|
|
|
/ GL_ARB_texture_rectangle vs GL_ARB_texture_non_power_of_two
|
|
|
|
% - works; bugs in tfp_mode with power_of_two textures
|
|
|
|
- ati (others?): power_of_two windows are drawn white unless non-tfp_mode
|
|
|
|
is forced in findTextureTarget()
|
2006-10-21 16:50:13 +00:00
|
|
|
|
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-11-16 07:46:39 +00:00
|
|
|
|
|
|
|
+ strict binding
|
|
|
|
- there is code to support strict binding as required by AIGLX, but it's disabled, because
|
|
|
|
copy_buffer in bindTexture() ensures strict binding as a side-effect
|
|
|
|
- since copy_buffer hack should be removed in the future, strict binding will need to be enabled then
|
|
|
|
- http://lists.kde.org/?l=kwin&m=116363084129170&w=2
|
|
|
|
|
2006-11-24 21:28:00 +00:00
|
|
|
% bindTexture() optimize copied areas
|
|
|
|
- right now bindTexture() updates every damaged area and resets the window damage
|
|
|
|
- it might make things faster to update only areas that need to be repainted
|
|
|
|
and keep the rest damaged until needed
|
|
|
|
|
2006-12-12 10:56:06 +00:00
|
|
|
% clipping optimization
|
2006-12-04 18:31:01 +00:00
|
|
|
- like XRender code has paintTransformedScreen(), avoid painting parts that are
|
|
|
|
obscured (makes a difference with many windows open)
|
2006-12-12 10:56:06 +00:00
|
|
|
- http://lists.kde.org/?l=kwin&m=116585618111882&w=2
|
2006-12-04 18:31:01 +00:00
|
|
|
|
2007-01-29 15:22:29 +00:00
|
|
|
+ shm mode needs support for more data formats than GL_BGRA in order to support e.g. 16bpp mode
|
|
|
|
- http://www.xfree86.org/current/glTexImage2D.3.html
|
|
|
|
|
2007-02-05 11:19:22 +00:00
|
|
|
% with current nvidia glXCreatePixmap in tfp mode fails with pixmaps 32x32 and smaller
|
|
|
|
|
2006-12-04 18:31:01 +00:00
|
|
|
|
2006-10-29 19:23:45 +00:00
|
|
|
XRender TODO
|
|
|
|
==============================
|
|
|
|
|
2006-11-07 23:33:23 +00:00
|
|
|
+ SceneXrender::Window::performPaint() doesn't use saturation
|
2006-11-08 19:10:07 +00:00
|
|
|
+ SceneXrender::Window::performPaint() doesn't use brightness
|
2006-10-24 19:17:48 +00:00
|
|
|
|
2006-10-29 19:23:45 +00:00
|
|
|
|
|
|
|
Effects framework TODO
|
|
|
|
==============================
|
|
|
|
|
|
|
|
* more notification functions for effects are needed
|
|
|
|
- currently there are only very few notification functions (windowAdded, windowActivated,...)
|
|
|
|
! - window state changes
|
|
|
|
? more
|
|
|
|
|
|
|
|
* shadows
|
|
|
|
|
2007-02-02 15:31:57 +00:00
|
|
|
/ support for grabbing input
|
2006-10-29 19:23:45 +00:00
|
|
|
- during some more complicated effects, input (at least mouse) should be disabled,
|
|
|
|
because currently there is no way to do input redirection
|
|
|
|
|
2006-11-17 08:43:24 +00:00
|
|
|
* pre-paint pass should be done completely before the paint pass
|
|
|
|
- currently prePaintWindow() is done only after paintScreen() has already started,
|
|
|
|
which means that if an effect sets PAINT_WINDOW_TRANSFORMED it needs to set it
|
|
|
|
also in prePaintScreen()
|
|
|
|
|
2007-01-15 18:03:04 +00:00
|
|
|
* PAINT_WINDOW_DISABLED turning off from effects needs some utility functions
|
|
|
|
- a window may have painting disabled for various reasons and their numbers may increase
|
|
|
|
over time
|
|
|
|
- so e.g. an effect showing minimized windows cannot simply turn off DISABLED
|
|
|
|
for minimized windows, because it may be disabled also for other reasons
|
|
|
|
- there should be some utility function that will be called by the effect
|
|
|
|
with arguments saying which disabled windows it wants enabled
|
|
|
|
|
2007-02-02 15:31:57 +00:00
|
|
|
+ EffectWindow should be completely opaque when kept as the only API for effects
|
|
|
|
- no inlines, etc.
|
|
|
|
|
2006-10-29 19:23:45 +00:00
|
|
|
|
|
|
|
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()
|
|
|
|
|
2007-01-15 18:03:04 +00:00
|
|
|
/ zoom effect
|
2006-10-29 19:23:45 +00:00
|
|
|
- enlarge a portion of the screen
|
|
|
|
|
2006-11-01 14:46:24 +00:00
|
|
|
+ logout effect
|
2006-11-03 10:05:53 +00:00
|
|
|
* - should be triggered by ksmserver somehow
|
|
|
|
|
|
|
|
+ effects to replace widget effects (the ones in the Effects tab in "kcmshell style")
|
|
|
|
+ - needs support for new window types from the current draft of the EWMH WM spec
|
|
|
|
+ - needs patching Qt, netwm* classes in kdecore
|
2006-11-01 14:46:24 +00:00
|
|
|
|
2006-11-16 22:46:14 +00:00
|
|
|
/ showfps effect
|
2006-11-04 07:29:20 +00:00
|
|
|
- for debugging, just shows transparent fps in some corner
|
|
|
|
- just painting the number in paintScreen() should do, with glPushMatrix() and glLoadIdentity()
|
|
|
|
to avoid all transformations
|
|
|
|
+ - needs bindPixmapToTexture() or something like that, for displaying the text
|
|
|
|
- should also detect kwin being idle - it probably should detect in pre-paint that the only
|
|
|
|
damage is its own area and avoid damaging for the next round in post-paint
|
|
|
|
|
|
|
|
+ debugpaint effect
|
|
|
|
- should show what is damaged during each repaint step
|
|
|
|
- probably just e.g. paint a red almost transparent area over damaged areas
|
|
|
|
- needs special care to avoid causing infinite loops by its own damage (i.e. it damages
|
|
|
|
part of screen to clear its own painting, that triggers itself again next repaint)
|
|
|
|
|
2006-10-29 19:23:45 +00:00
|
|
|
? other effects
|
2007-01-22 22:57:22 +00:00
|
|
|
|
2007-01-25 16:39:42 +00:00
|
|
|
+ merge fadein and fadeout effects
|
|
|
|
- so that they don't conflict and share the progress
|
2007-02-02 15:31:57 +00:00
|
|
|
|
|
|
|
+ virtual desktop change effects
|
|
|
|
+ - ... yes, you guessed it, the cube
|
|
|
|
+ - something that presents all virtual desktops as being in grid (as in pager)
|
|
|
|
and zooms out of the old one and into the new one
|
|
|
|
- or whatever
|