mirror of
https://github.com/zoriya/ags.git
synced 2026-06-09 04:46:08 +00:00
Merge branch 'main' into v1-alpha
This commit is contained in:
@@ -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
@@ -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
@@ -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;
|
||||
Reference in New Issue
Block a user