roundabout,
created on Wednesday, 30 July 2025, 17:20:29 (1753896029),
received on Saturday, 9 August 2025, 12:22:37 (1754742157)
Author identity: Vlad <vlad.muntoiu@gmail.com>
31834ecd2552ebca450bb8d61283f6fc94371cd1
applets/wf-window-list/__init__.py
@@ -175,7 +175,7 @@ class WFWindowList(panorama_panel.Applet):
ffi.cast("void *", ctypes.pythonapi.PyCapsule_GetPointer(self.get_root().get_native().get_display().__gpointer__, None)))
self.display._ptr = wl_display_ptr
self.display.connect()
#self.display.connect()
self.registry = self.display.get_registry()
self.registry.dispatcher["global"] = self.on_global
@@ -227,8 +227,9 @@ class WFWindowList(panorama_panel.Applet):
if button.window_state.focused:
# Already pressed in, so minimise the focused window
# Set a rectangle for animation
# TODO: provide surface here
button.window_id.set_rectangle(self.surface, *get_widget_rect(button))
surface = WlSurface()
surface._ptr = self.wl_surface_ptr
button.window_id.set_rectangle(surface, *get_widget_rect(button))
button.window_id.set_minimized()
else:
button.window_id.unset_minimized()
@@ -280,4 +281,4 @@ class WFWindowList(panorama_panel.Applet):
pass
def get_config(self):
return {}
return {}