mirror of
https://github.com/lhns/steam-frame-nix.git
synced 2026-10-06 10:00:24 +02:00
14 lines
650 B
JavaScript
14 lines
650 B
JavaScript
// Reverts window-curvature/patch.js: ends a running press or drag, removes
|
|
// the control from open menus and bar buttons (class, listeners, value
|
|
// indicator, a bar's drag room), its style, reactions and SendMessage hook
|
|
// (the shared wrapper goes too once no other patch uses it) and resends the
|
|
// scene graph, so windows get the stock curve radius back. Curvature on/off
|
|
// is stock state and stays as it is. window.__sfuiWindowCurvatureState
|
|
// (per-window values) is kept for a re-injection. Safe when not patched.
|
|
(() => {
|
|
const s = window.__sfuiWindowCurvature;
|
|
if (!s) return 'not patched';
|
|
s.teardown();
|
|
return 'unpatched';
|
|
})()
|