2007-04-29 17:35:43 +00:00
|
|
|
This file lists TODO items for the compositing code.
|
|
|
|
|
|
|
|
See file COMPOSITE_HOWTO for setting up kwin_composite.
|
|
|
|
See file HACKING for details on developing KWin, including building
|
|
|
|
the kwin_composite branch.
|
|
|
|
See effects/howto.* for a HOWTO on writting effects.
|
|
|
|
See documentation in source (mainly in scene.cpp) for description
|
|
|
|
of the design of the compositing framework.
|
|
|
|
|
|
|
|
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
|
|
|
|
/ = work in progress
|
|
|
|
? = should it be done?
|
|
|
|
% = should be probably done later, during cleanups and preparations for being stable
|
|
|
|
|
|
|
|
|
2007-07-03 14:58:28 +00:00
|
|
|
KDE 4.0 TODO
|
|
|
|
=================================
|
|
|
|
|
2008-01-03 13:02:27 +00:00
|
|
|
- release notes document
|
|
|
|
|
2007-07-03 14:58:28 +00:00
|
|
|
- effects (to do)
|
2007-07-03 16:29:38 +00:00
|
|
|
- add generic support to use effect only for certain window types [Seli]
|
2007-07-03 14:58:28 +00:00
|
|
|
- shadow
|
|
|
|
- xrender mode
|
2007-07-19 19:50:05 +00:00
|
|
|
- desktopgrid
|
2007-07-03 14:58:28 +00:00
|
|
|
- should preserve aspect ratio (as an option?)
|
2007-12-18 15:33:28 +00:00
|
|
|
- zoom
|
|
|
|
- it should react on Meta+wheel ?
|
2007-07-03 14:58:28 +00:00
|
|
|
|
2007-07-19 16:33:26 +00:00
|
|
|
- window-specific rules need to apply to unmanaged windows as well (where applicable)
|
|
|
|
- some window-specific rules also related to compositing
|
|
|
|
- opacity
|
2007-07-03 16:18:13 +00:00
|
|
|
|
2007-09-20 13:28:33 +00:00
|
|
|
/ handling of window pixmaps for unmapped windows [Seli]
|
|
|
|
- config option?
|
2007-11-26 15:53:58 +00:00
|
|
|
- switching virtual desktops can be slow because of this as well, maybe HiddenPreviews
|
|
|
|
option should consider this (and be renamed to something more suitable)
|
2007-07-03 16:18:13 +00:00
|
|
|
|
|
|
|
- shm mode needs support for more data formats than GL_BGRA
|
|
|
|
|
|
|
|
- check what works with XRender
|
|
|
|
|
|
|
|
- documentation
|
|
|
|
|
|
|
|
- disable application effects when kwin can provide them, e.g. shadow/transparency
|
2007-07-03 14:58:28 +00:00
|
|
|
|
2007-09-03 14:24:29 +00:00
|
|
|
|
2007-04-29 17:35:43 +00:00
|
|
|
General TODO
|
|
|
|
=================================
|
|
|
|
|
2008-01-02 15:29:44 +00:00
|
|
|
+ suspend repaints if not visible or dpms is active
|
|
|
|
- there is already 'overlay_visible', but it still polls the mouse in such case
|
|
|
|
- it should turn off the timer
|
|
|
|
|
2007-04-29 17:35:43 +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
|
|
|
|
? - this has been already greatly improved by r632378, so it's maybe not worth it anymore
|
|
|
|
- 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
|
|
|
|
|
|
|
|
% 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
|
|
|
|
|
|
|
|
* handle properly stacking order of deleted windows for showing in effects
|
|
|
|
|
|
|
|
* handle properly deleted windows that reappear (windowReadded() function?)
|
|
|
|
|
|
|
|
% 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
|
|
|
|
|
|
|
|
% 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
|
|
|
|
|
2007-06-11 09:44:58 +00:00
|
|
|
/ handling of window pixmap for unmapped windows
|
2007-04-29 17:35:43 +00:00
|
|
|
- currently it's kept around after a window is unmapped
|
|
|
|
* - but it's still discarded on e.g. resize - how to solve this?
|
2007-12-17 14:33:33 +00:00
|
|
|
* - windows could be unmapped but quickly mapped back when a live thumbnail is needed
|
2007-04-29 17:35:43 +00:00
|
|
|
|
|
|
|
* window grouping is not implemented for unmanaged windows (used e.g. by DimInactive)
|
|
|
|
|
|
|
|
% clean up and sort out shortcuts so that they don't conflict and make sense
|
2007-05-07 11:46:01 +00:00
|
|
|
|
2007-07-04 09:51:10 +00:00
|
|
|
? hidden previews currently needs input shape extension, otherwise the window can possibly interfere
|
|
|
|
- not very likely though, so is this worth bothering at all?
|
|
|
|
|
|
|
|
+ hidden preview has two modes unimplemented
|
|
|
|
|
2007-10-21 14:52:37 +00:00
|
|
|
- global setting for animation speed?
|
2007-12-17 14:33:33 +00:00
|
|
|
|
2007-10-21 14:52:37 +00:00
|
|
|
- effects (to do)
|
|
|
|
- effect for windows demanding attention
|
|
|
|
- rays? ripples?
|
|
|
|
|
2007-04-29 17:35:43 +00:00
|
|
|
|
|
|
|
OpenGL TODO
|
|
|
|
=================================
|
|
|
|
|
|
|
|
/ Check/make it work with other gfx cards
|
|
|
|
|
2007-06-18 21:14:18 +00:00
|
|
|
% Xgl support
|
|
|
|
- should work
|
|
|
|
- in SceneGL::Texture::findTarget() there is a hack that makes KWin work with XGL
|
|
|
|
without requiring KWin to be built against the libGL version that Compiz is
|
|
|
|
built against
|
|
|
|
% - that may not be necessary somewhen later
|
|
|
|
- interesting observation: normally run glxgears performs somewhat poorly compared
|
|
|
|
to normal nvidia mode, changing glxgears to be override-redirect (i.e. no reparenting)
|
|
|
|
however makes glxgears to be even faster than without any compositing at all,
|
|
|
|
in this case however kwin's redrawing speed drops somewhat
|
|
|
|
|
|
|
|
% AIGLX support
|
|
|
|
- should work
|
2007-04-29 17:35:43 +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()
|
|
|
|
|
|
|
|
% 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
|
|
|
|
|
|
|
|
% clipping optimization
|
|
|
|
- like XRender code has paintTransformedScreen(), avoid painting parts that are
|
|
|
|
obscured (makes a difference with many windows open)
|
|
|
|
- http://lists.kde.org/?l=kwin&m=116585618111882&w=2
|
|
|
|
|
2007-09-03 14:24:29 +00:00
|
|
|
! shm mode needs support for more data formats than GL_BGRA
|
2007-04-29 17:35:43 +00:00
|
|
|
- http://www.xfree86.org/current/glTexImage2D.3.html
|
2007-04-29 21:22:49 +00:00
|
|
|
- this now works for 16bpp, but maybe not 15bpp or less
|
|
|
|
- endian issues?
|
2007-04-29 17:35:43 +00:00
|
|
|
|
2007-12-17 14:19:41 +00:00
|
|
|
+ support for __GL_YIELD=NOTHING and LIBGL_ALWAYS_INDIRECT should be possibly less hacky
|
|
|
|
- or at least not hardcoded (although, does that matter?)
|
|
|
|
- (http://lists.kde.org/?l=kwin&m=116439615124838&w=2)
|
|
|
|
- (http://lists.freedesktop.org/archives/xorg/2006-December/020323.html)
|
|
|
|
|
2007-05-04 13:16:32 +00:00
|
|
|
|
2007-04-29 17:35:43 +00:00
|
|
|
XRender TODO
|
|
|
|
==============================
|
|
|
|
|
|
|
|
+ SceneXrender::Window::performPaint() doesn't use saturation
|
|
|
|
+ SceneXrender::Window::performPaint() doesn't use brightness
|
|
|
|
|
|
|
|
+ SceneXrender::paintTransformedScreen() doesn't handle properly extending of painted area
|
|
|
|
in window's pre-paint - see the transformedShape() comment
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
/ 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
|
|
|
|
|
|
|
|
+ EffectWindow should be completely opaque when kept as the only API for effects
|
|
|
|
- no inlines, etc.
|
|
|
|
|
|
|
|
+ API for tabbox for effects should be cleaned up
|
|
|
|
|
|
|
|
* check Scene::updateTimeDiff() - should the time be 0 or 1?
|
|
|
|
|
|
|
|
% post calls are probably not necessary by now (http://lists.kde.org/?t=117770818100003&r=1&w=2)
|
|
|
|
|
2007-06-11 09:44:58 +00:00
|
|
|
% consider using http://lists.kde.org/?l=kwin&m=118094888517415&w=2 for notification functions
|
|
|
|
|
2007-06-19 11:43:09 +00:00
|
|
|
% API cleanups and making sure it will stay backwards compatible
|
|
|
|
|
2007-04-29 17:35:43 +00:00
|
|
|
|
|
|
|
Effects TODO
|
|
|
|
===============================
|
|
|
|
|
|
|
|
+ minimize/shade effects
|
|
|
|
- to replace the ones from KWin core
|
|
|
|
/ - minimizing
|
|
|
|
- check support for it and the avoid_animation flag
|
|
|
|
+ - shading
|
|
|
|
- shading will probably need special support
|
|
|
|
|
|
|
|
/ zoom effect
|
|
|
|
- enlarge a portion of the screen
|
|
|
|
|
|
|
|
+ logout effect
|
|
|
|
* - should be triggered by ksmserver somehow
|
|
|
|
|
|
|
|
+ effects to replace widget effects (the ones in the Effects tab in "kcmshell style")
|
|
|
|
|
|
|
|
/ showfps effect
|
|
|
|
- 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
|
|
|
|
|
|
|
|
? other effects
|
|
|
|
|
|
|
|
+ virtual desktop change effects
|
|
|
|
+ - ... yes, you guessed it, the cube
|
|
|
|
|
2007-07-03 14:58:28 +00:00
|
|
|
/ present windows
|
|
|
|
+ - option to show windows with relative sizes to each other
|
|
|
|
|
|
|
|
/ scalein
|
|
|
|
+ - should scale in from e.g. 80%, not 0%, to just "pop up"
|
|
|
|
|
2007-06-19 11:43:09 +00:00
|
|
|
+ effect for drawing attention to windows demanding attention
|
|
|
|
|
2007-04-29 17:35:43 +00:00
|
|
|
* DimInactive flickers when switching between windows (temporarily no window becomes active)
|
2007-07-03 14:58:28 +00:00
|
|
|
|
2007-07-03 16:18:13 +00:00
|
|
|
- focus effect (windows waves a little when it gets focus)
|
2008-01-03 19:39:18 +00:00
|
|
|
|
|
|
|
+ shadow
|
|
|
|
+ - make work with xrender
|
|
|
|
+ - follow the shape of the window (currently is disabled completely using the hasOwnShadow() hack)
|
2008-01-24 21:51:35 +00:00
|
|
|
|
|
|
|
/ desktopgrid
|
|
|
|
+ - there's a bug that causes overlapping windows be shown also on desktops painted sooner than the window's desktop
|
|
|
|
- needs clipping (and that probably needs support for cumulating clipping)
|
2008-01-24 22:04:07 +00:00
|
|
|
! - make desktop borders distinctive (i.e. paint a grid), to make it more visible that desktops are still separate
|
2008-03-20 11:17:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
Performance
|
|
|
|
==================
|
|
|
|
|
|
|
|
+ various caching - there are many things that usually don't change and could gain few fps (is it worth it?)
|
|
|
|
- Workspace::performCompositing()
|
|
|
|
- WindowQuadList could perhaps cache quads split by contents/decoration (for select())
|
2008-04-24 12:53:03 +00:00
|
|
|
|
|
|
|
+ avoiding X roundtrips each compositing pass
|
|
|
|
- right now it at least always polls the mouse position and the current stacking order
|