diff options
author | Richard Grenville <[email protected]> | 2012-12-15 20:07:45 +0800 |
---|---|---|
committer | Richard Grenville <[email protected]> | 2012-12-15 20:07:45 +0800 |
commit | f4edcb2ec1618b71f09a6b93cdd123583cf3a8c4 (patch) | |
tree | 08eba048a7126549ad3579f244c386b3a1dd360e /compton.h | |
parent | 64a9b80f3b29af29c4b8fc7e6981ac1f321f768c (diff) | |
download | tdebase-f4edcb2ec1618b71f09a6b93cdd123583cf3a8c4.tar.gz tdebase-f4edcb2ec1618b71f09a6b93cdd123583cf3a8c4.zip |
Improvement: Dynamic blur strength & improved frame blur performance
- Remove the region expansion design in win_blur_background(). I must be
sleep-walking when I wrote that!
- Improve performance of blurring when a window is opaque but its frame
is transparent.
- Adjust blur strength according to window opacity.
--blur-background-fixed restores the old behavior.
- Add "use_offset" parameter to a few functions for convenience. Code
clean-up.
Diffstat (limited to 'compton.h')
-rw-r--r-- | compton.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -335,6 +335,9 @@ typedef struct { /// Whether to blur background when the window frame is not opaque. /// Implies blur_background. bool blur_background_frame; + /// Whether to use fixed blur strength instead of adjusting according + /// to window opacity. + bool blur_background_fixed; // === Focus related === /// Consider windows of specific types to be always focused. @@ -1494,10 +1497,16 @@ static void paint_root(session_t *ps, Picture tgt_buffer); static XserverRegion +win_get_region(session_t *ps, win *w, bool use_offset); + +static XserverRegion +win_get_region_noframe(session_t *ps, win *w, bool use_offset); + +static XserverRegion win_extents(session_t *ps, win *w); static XserverRegion -border_size(session_t *ps, win *w); +border_size(session_t *ps, win *w, bool use_offset); static Window find_client_win(session_t *ps, Window w); |