fix(ags overlay): remove unintended margin changes on workspaces
This commit is contained in:
parent
9972be9b19
commit
5f788c81fb
2 changed files with 33 additions and 21 deletions
|
@ -72,7 +72,7 @@ export function updateClients(box) {
|
|||
let clients = JSON.parse(result).filter(client => client.class)
|
||||
|
||||
box._workspaces.forEach(workspace => {
|
||||
let fixed = workspace.child.child.overlays[0].children[0];
|
||||
let fixed = workspace.child.child.overlays[1].children[0];
|
||||
let toRemove = fixed.get_children();
|
||||
|
||||
clients.filter(client => client.workspace.id == workspace._id).forEach(client => {
|
||||
|
|
|
@ -60,7 +60,12 @@ export const WorkspaceRow = (className, i) => Revealer({
|
|||
className: 'workspace',
|
||||
style: DEFAULT_STYLE,
|
||||
}),
|
||||
overlays: [Box({
|
||||
overlays: [
|
||||
Box({
|
||||
className: 'workspace active',
|
||||
style: `${DEFAULT_STYLE} opacity: 0;`,
|
||||
}),
|
||||
Box({
|
||||
style: DEFAULT_STYLE,
|
||||
children: [
|
||||
Widget({
|
||||
|
@ -71,7 +76,8 @@ export const WorkspaceRow = (className, i) => Revealer({
|
|||
style: 'font-size: 40px;',
|
||||
}),
|
||||
],
|
||||
})],
|
||||
})
|
||||
],
|
||||
}),
|
||||
}),
|
||||
}),
|
||||
|
@ -96,7 +102,7 @@ const Workspace = (id, name) => Revealer({
|
|||
let activeId = Hyprland.active.workspace.id;
|
||||
let active = activeId === box._id;
|
||||
|
||||
let rev = box.child.child.child;
|
||||
let rev = box.child.child.overlays[0];
|
||||
let n = activeId > box._id;
|
||||
|
||||
if (Hyprland.getWorkspace(box._id)?.windows > 0 || active) {
|
||||
|
@ -146,13 +152,19 @@ const Workspace = (id, name) => Revealer({
|
|||
className: 'workspace active',
|
||||
style: `${DEFAULT_STYLE} opacity: 0;`,
|
||||
}),
|
||||
overlays: [Box({
|
||||
overlays: [
|
||||
Box({
|
||||
className: 'workspace active',
|
||||
style: `${DEFAULT_STYLE} opacity: 0;`,
|
||||
}),
|
||||
Box({
|
||||
className: 'workspace',
|
||||
style: DEFAULT_STYLE,
|
||||
child: Widget({
|
||||
type: Gtk.Fixed,
|
||||
}),
|
||||
})],
|
||||
})
|
||||
],
|
||||
}),
|
||||
}),
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue