Merge branch 'main' into v1-alpha

This commit is contained in:
Aylur
2023-08-19 23:15:12 +02:00
committed by GitHub
3 changed files with 5 additions and 6 deletions
+2 -2
View File
@@ -21,14 +21,14 @@ interface Active {
class HyprlandService extends Service {
static {
Service.register(this, {
'urgent-window': ['int'],
'urgent-window': ['string'],
'submap': ['string'],
'keyboard-layout': ['string', 'string'],
});
}
_active: Active;
_monitors: Map<string, object>;
_monitors: Map<number, object>;
_workspaces: Map<number, object>;
_clients: Map<string, object>;
+2 -2
View File
@@ -192,12 +192,12 @@ export function subprocess(
stdout.read_line_async(GLib.PRIORITY_LOW, null, (stdout, res) => {
try {
const output = stdout?.read_line_finish_utf8(res)[0];
if (output) {
if (typeof output === 'string' && stdout) {
callback(output);
read(stdout);
}
} catch (e) {
return onError(e as Error);
onError(e as Error);
}
});
};
+1 -2
View File
@@ -18,7 +18,6 @@ import { ctor } from './widgets/shared.js';
export default function Widget({ type, ...params }: { type: ctor }) {
return constructor(type, params);
}
export const Box = (args: object) => constructor(AgsBox, args);
export const Button = (args: object) => constructor(AgsButton, args);
@@ -54,4 +53,4 @@ Widget.Revealer = Revealer;
Widget.Scrollable = Scrollable;
Widget.Slider = Slider;
Widget.Stack = Stack;
Widget.Window = Window;
Widget.Window = Window;