summaryrefslogtreecommitdiffstats
path: root/compton.h
diff options
context:
space:
mode:
authorRichard Grenville <[email protected]>2012-12-15 20:07:45 +0800
committerRichard Grenville <[email protected]>2012-12-15 20:07:45 +0800
commitf4edcb2ec1618b71f09a6b93cdd123583cf3a8c4 (patch)
tree08eba048a7126549ad3579f244c386b3a1dd360e /compton.h
parent64a9b80f3b29af29c4b8fc7e6981ac1f321f768c (diff)
downloadtdebase-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.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/compton.h b/compton.h
index 8aecaa762..66ed3961b 100644
--- a/compton.h
+++ b/compton.h
@@ -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);