diff options
author | Richard Grenville <pyxlcy@gmail.com> | 2013-03-21 13:05:56 +0800 |
---|---|---|
committer | Richard Grenville <pyxlcy@gmail.com> | 2013-03-21 13:05:56 +0800 |
commit | 2dfe9d52ed6d83fd0f2cc6cc0d921701dcb8b017 (patch) | |
tree | 734b354c4c6c1ed99343bd958d53d072c4d776cb /compton.h | |
parent | da85de48a9d078eeb5a437482c41c85884496318 (diff) | |
download | tdebase-2dfe9d52ed6d83fd0f2cc6cc0d921701dcb8b017.tar.gz tdebase-2dfe9d52ed6d83fd0f2cc6cc0d921701dcb8b017.zip |
Improvement: --glx-use-copysubbuffermesa
- GLX backend: Add --glx-use-copysubbuffermesa, to use
MESA_copy_sub_buffer to do partial screen update. Huge performance
boost on mesa drivers for partial screen updates, but does not work
for nvidia-drivers and may break VSync. Automagically overrides
--glx-copy-from-front.
- Add rect_is_fullscreen() to reuse code. Misc changes.
Diffstat (limited to 'compton.h')
-rw-r--r-- | compton.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -427,10 +427,8 @@ dump_drawable(session_t *ps, Drawable drawable) { */ static inline bool win_is_fullscreen(session_t *ps, const win *w) { - return (w->a.x <= 0 && w->a.y <= 0 - && (w->a.x + w->widthb) >= ps->root_width - && (w->a.y + w->heightb) >= ps->root_height - && !w->bounding_shaped); + return rect_is_fullscreen(ps, w->a.x, w->a.y, w->widthb, w->heightb) + && !w->bounding_shaped; } static void |