Skip to content

Commit f610edb

Browse files
committed
true borderless browser
1 parent 46f75fe commit f610edb

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/AliceWM.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ class WMWindow extends EventTarget implements Process {
9696
public app?: App,
9797
) {
9898
super();
99+
//@ts-expect-error
100+
this.deactivateFrames = deactivateFrames;
99101
this.#args = wininfo.args || [];
100102
this.wininfo = wininfo;
101103
this.state = $state({

src/coreapps/BrowserApp.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ class BrowserApp extends App {
101101

102102
browser.content.appendChild(iframe);
103103

104+
//@ts-expect-error
105+
iframe.contentWindow.anurainstance = browser;
106+
104107
if (anura.settings.get("borderless-aboutbrowser")) {
105108
// make borderless
106109
browser.content.style.position = "absolute";
@@ -111,6 +114,10 @@ class BrowserApp extends App {
111114

112115
(container!.querySelector(".title") as any).style["background-color"] =
113116
"rgba(0, 0, 0, 0)";
117+
const titleBar = container!.querySelector(".title") as HTMLElement;
118+
titleBar.style.position = "absolute";
119+
titleBar.style.top = "0";
120+
titleBar.style.right = "0";
114121
}
115122

116123
return browser;

0 commit comments

Comments
 (0)