From 4245d805b6f75e59e85e3d06d9869471e4d74d07 Mon Sep 17 00:00:00 2001 From: acidkewpie Date: Thu, 16 Mar 2023 18:03:30 +0000 Subject: [PATCH 1/2] add source_window parameter to shape_combine Seems a parameter was lost when the code was re-written back in version 0.16. --- Xlib/ext/shape.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Xlib/ext/shape.py b/Xlib/ext/shape.py index 05a517ac..fd7dd32c 100644 --- a/Xlib/ext/shape.py +++ b/Xlib/ext/shape.py @@ -200,16 +200,18 @@ class Event: # Sub events. Notify = 0 -def combine(self, operation, destination_kind, source_kind, x_offset, y_offset): +def combine(self, operation, destination_kind, source_kind, x_offset, y_offset, source_window): Combine( display=self.display, opcode=self.display.get_extension_major(extname), - source_window=self, + source_window=source_window + destination_window=self, operation=operation, destination_kind=destination_kind, source_kind=source_kind, x_offset=x_offset, y_offset=y_offset, + source_window=source_window ) def get_rectangles(self, source_kind): From fdf41e96affca639dcf87ddd41b8c0011b2f7dff Mon Sep 17 00:00:00 2001 From: acidkewpie Date: Thu, 16 Mar 2023 18:38:07 +0000 Subject: [PATCH 2/2] Update shape.py --- Xlib/ext/shape.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Xlib/ext/shape.py b/Xlib/ext/shape.py index fd7dd32c..e90421cb 100644 --- a/Xlib/ext/shape.py +++ b/Xlib/ext/shape.py @@ -204,7 +204,6 @@ def combine(self, operation, destination_kind, source_kind, x_offset, y_offset, Combine( display=self.display, opcode=self.display.get_extension_major(extname), - source_window=source_window destination_window=self, operation=operation, destination_kind=destination_kind, pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy