|
4 | 4 | # |
5 | 5 | # Copyright (C) 2007 Peter Liljenberg <peter.liljenberg@gmail.com> |
6 | 6 | # |
7 | | -# This program is free software; you can redistribute it and/or modify |
8 | | -# it under the terms of the GNU General Public License as published by |
9 | | -# the Free Software Foundation; either version 2 of the License, or |
10 | | -# (at your option) any later version. |
| 7 | +# This library is free software; you can redistribute it and/or |
| 8 | +# modify it under the terms of the GNU Lesser General Public License |
| 9 | +# as published by the Free Software Foundation; either version 2.1 |
| 10 | +# of the License, or (at your option) any later version. |
11 | 11 | # |
12 | | -# This program is distributed in the hope that it will be useful, |
13 | | -# but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | | -# GNU General Public License for more details. |
| 12 | +# This library is distributed in the hope that it will be useful, |
| 13 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 15 | +# See the GNU Lesser General Public License for more details. |
16 | 16 | # |
17 | | -# You should have received a copy of the GNU General Public License |
18 | | -# along with this program; if not, write to the Free Software |
19 | | -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 | +# You should have received a copy of the GNU Lesser General Public |
| 18 | +# License along with this library; if not, write to the |
| 19 | +# Free Software Foundation, Inc., |
| 20 | +# 59 Temple Place, |
| 21 | +# Suite 330, |
| 22 | +# Boston, MA 02111-1307 USA |
20 | 23 |
|
21 | 24 | """Composite extension, allowing windows to be rendered to off-screen |
22 | 25 | storage. |
@@ -160,7 +163,7 @@ def create_region_from_border_clip(self): |
160 | 163 | """Create a region of the border clip of the window, i.e. the area |
161 | 164 | that is not clipped by the parent and any sibling windows. |
162 | 165 | """ |
163 | | - |
| 166 | + |
164 | 167 | rid = self.display.allocate_resource_id() |
165 | 168 | CreateRegionFromBorderClip( |
166 | 169 | display = self.display, |
@@ -202,7 +205,7 @@ def name_window_pixmap(self): |
202 | 205 |
|
203 | 206 | cls = self.display.get_resource_class('pixmap', drawable.Pixmap) |
204 | 207 | return cls(self.display, pid, owner = 1) |
205 | | - |
| 208 | + |
206 | 209 |
|
207 | 210 | def init(disp, info): |
208 | 211 | disp.extension_add_method('display', |
|
0 commit comments