diff options
author | Richard Grenville <[email protected]> | 2013-04-05 21:05:19 +0800 |
---|---|---|
committer | Richard Grenville <[email protected]> | 2013-04-05 21:05:19 +0800 |
commit | 53870fb7fe83f5ab54a0e37a553f3dd769e2fbbf (patch) | |
tree | 570c68806c57c2a5dd76f398bcb4d519f527fcb3 /c2.c | |
parent | ab53e73ce77aa44458de55f62abf6273ac44d540 (diff) | |
download | tdebase-53870fb7fe83f5ab54a0e37a553f3dd769e2fbbf.tar.gz tdebase-53870fb7fe83f5ab54a0e37a553f3dd769e2fbbf.zip |
Improvement: GLX: Cache region contents & --glx-no-rebind-pixmap
- Cache region contents in is_region_empty(), mostly useful only for GLX
backend to save one roundtrip to X.
- GLX backend: Add --glx-no-rebind-pixmap, which prevents rebinding of
GLX texture to pixmap on content change. It doesn't work on some
drivers, but it saves some CPU on those where it does.
- Wrap XFree() with a new function cxfree() since its man page claims
NULL pointers are not acceptable (although in fact it does...).
- Use macro to save some code in get_cfg(). Code clean-up.
Diffstat (limited to 'c2.c')
-rw-r--r-- | c2.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1183,7 +1183,7 @@ c2_match_once_leaf(session_t *ps, win *w, const c2_l_t *pleaf, // Free the string after usage, if necessary if (tgt_free) { if (C2_L_TATOM == pleaf->type) - XFree(tgt_free); + cxfree(tgt_free); else free(tgt_free); } |