MCPcopy Create free account
hub / github.com/NyarchLinux/DesktopPuppet / update_loop

Function update_loop

src/main.py:74–85  ·  view source on GitHub ↗
(surface, model_manager)

Source from the content-addressed store, hash-verified

72 window = Gtk.Window(application=app, title="nyarchpet")
73 # GNOME has no layer shell; the pet stays a regular toplevel there and the
74 # Shell extension keeps it on top and sized to the work area.
75 if LayerShell.is_supported():
76 LayerShell.init_for_window(window)
77 LayerShell.set_layer(window, LayerShell.Layer.OVERLAY)
78 window.set_decorated(False)
79
80 # A user GTK stylesheet can contain a global `window` background at
81 # GTK_STYLE_PROVIDER_PRIORITY_USER. Transparency is functional here, not
82 # cosmetic, so install this narrowly-scoped rule just above that priority.
83 # Fully transparent (`alpha: 0`) makes Hyprland discard the layer surface,
84 # leaving a 200x200 invisible window. One percent is not visible and keeps
85 # the surface mapped so the model can draw.
86 css = Gtk.CssProvider()
87 css.load_from_string(
88 """

Callers

nothing calls this directly

Calls 2

get_updated_areaMethod · 0.80

Tested by

no test coverage detected