diff options
author | Richard Grenville <[email protected]> | 2013-04-27 17:34:42 +0800 |
---|---|---|
committer | Richard Grenville <[email protected]> | 2013-04-27 17:44:10 +0800 |
commit | 19471a428959f681f1f4c14a46e6dc01dd212ad4 (patch) | |
tree | 2abf513f8b0b7cb55530dfcc033c5a7483ca0318 /common.h | |
parent | 5775cefe97e12c7786871b5efc4e3658c97309e5 (diff) | |
download | tdebase-19471a428959f681f1f4c14a46e6dc01dd212ad4.tar.gz tdebase-19471a428959f681f1f4c14a46e6dc01dd212ad4.zip |
Bug fix: Fix --resize-damage
- Fix --resize-damage. I forgot to shrink the painting region back when
actually copying to destination.
- Include extra pixels around the blur texture to avoid some possible
small issues, if --resize-damage is positive.
- Known issue: Line artifacts may still appear with --dbe (X Render
backend) or --glx-swap-method (GLX backend). I doubt if there's way to
fix this without very inefficient mechanisms.
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1599,6 +1599,9 @@ find_focused(session_t *ps) { */ static inline XserverRegion copy_region(const session_t *ps, XserverRegion oldregion) { + if (!oldregion) + return None; + XserverRegion region = XFixesCreateRegion(ps->dpy, NULL, 0); XFixesCopyRegion(ps->dpy, region, oldregion); |