~linaro-maintainers/compiz-plugins-main/overlay-gl

« back to all changes in this revision

Viewing changes to debian/patches/workarounds_931473.patch

  • Committer: Ricardo Salveti de Araujo
  • Date: 2012-03-13 02:55:35 UTC
  • Revision ID: ricardo.salveti@linaro.org-20120313025535-7g6gz9161xjke0ht
* debian/*:
  - Sync with latest precise package

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- a/workarounds/src/workarounds.cpp   2012-02-21 03:51:25 +0000
 
2
+++ b/workarounds/src/workarounds.cpp   2012-02-24 08:54:19 +0000
 
3
@@ -299,6 +299,17 @@
 
4
     return gWindow->glPaint (attrib, transform, region, mask);
 
5
 }
 
6
 
 
7
+bool
 
8
+WorkaroundsWindow::damageRect (bool initial, const CompRect &rect)
 
9
+{
 
10
+    if (initial)
 
11
+       cWindow->addDamage (true);
 
12
+
 
13
+    cWindow->damageRectSetEnabled (this, false);
 
14
+
 
15
+    return cWindow->damageRect (initial, rect);
 
16
+}
 
17
+
 
18
 void
 
19
 WorkaroundsScreen::checkFunctions (bool checkWindow, bool checkScreen)
 
20
 {
 
21
@@ -1075,6 +1086,9 @@
 
22
 
 
23
     WORKAROUNDS_SCREEN (screen);
 
24
 
 
25
+    if (ws->optionGetInitialDamageCompleteRedraw ())
 
26
+       CompositeWindowInterface::setHandler (cWindow);
 
27
+
 
28
     if (ws->optionGetLegacyFullscreen ())
 
29
     {
 
30
        window->getAllowedActionsSetEnabled (this, false);
 
31
 
 
32
--- a/workarounds/src/workarounds.h     2012-01-13 00:14:05 +0000
 
33
+++ b/workarounds/src/workarounds.h     2012-02-24 08:54:19 +0000
 
34
@@ -122,6 +122,7 @@
 
35
 class WorkaroundsWindow :
 
36
     public PluginClassHandler <WorkaroundsWindow, CompWindow>,
 
37
     public WindowInterface,
 
38
+    public CompositeWindowInterface,
 
39
     public GLWindowInterface
 
40
 {
 
41
     public:
 
42
@@ -200,6 +201,9 @@
 
43
        unsigned int
 
44
        getFixedWindowType ();
 
45
 
 
46
+       bool
 
47
+       damageRect (bool initial, const CompRect &rect);
 
48
+
 
49
 };
 
50
 
 
51
 #define WORKAROUNDS_WINDOW(w)                                                 \
 
52
 
 
53
--- a/workarounds/workarounds.xml.in    2012-01-13 00:14:05 +0000
 
54
+++ b/workarounds/workarounds.xml.in    2012-02-24 08:54:19 +0000
 
55
@@ -83,6 +83,11 @@
 
56
                <_long>Don't wait for the next video sync time to redraw</_long>
 
57
                <default>false</default>
 
58
            </option>
 
59
+           <option type="bool" name="initial_damage_complete_redraw">
 
60
+               <_short>Force complete redraw on initial damage</_short>
 
61
+               <_long>Force complete redraw of the window on initial damage event</_long>
 
62
+               <default>true</default>
 
63
+           </option>
 
64
            <option type="bool" name="force_swap_buffers">
 
65
                <_short>Force full screen redraws (buffer swap) on repaint</_short>
 
66
                <_long>Forces the entire screen to redraw every repaint. Use with care, this will cause a massive increase in GPU and CPU usage</_long>
 
67