Skip to content

Commit

Permalink
don't shadow variable
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 27, 2023
1 parent 878d831 commit d9367c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xpra/client/gl/gtk3/glarea_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ def on_realize(self, *args) -> None:
self.gl_init(gl_context)
# fire the delayed realized callbacks:
onrcb = self.on_realize_cb
log("GLAreaBacking.fire_realize_cb callbacks=%s", tuple(ellipsizer(x) for x in onrcb))
log(f"GLAreaBacking.on_realize({args}) callbacks=%s", tuple(ellipsizer(x) for x in onrcb))
gl_context.update_geometry = noop
self.on_realize_cb = []
for x, args in onrcb:
for x, xargs in onrcb:
with log.trap_error("Error calling realize callback %s", ellipsizer(x)):
x(gl_context, *args)
x(gl_context, *xargs)

def with_gl_context(self, cb:Callable, *args):
da = self._backing
Expand Down

0 comments on commit d9367c4

Please sign in to comment.