parent
42d4759786
commit
7860e2638e
2 changed files with 13 additions and 3 deletions
devices/wim/config/ags/js/overview
|
@ -137,8 +137,18 @@ export const updateClients = (box) => {
|
||||||
const active =
|
const active =
|
||||||
client.address === Hyprland.active.client.address;
|
client.address === Hyprland.active.client.address;
|
||||||
|
|
||||||
// TODO: fix multi monitor issue. this is just a temp fix
|
// TODO: see if this works on multi monitor setup
|
||||||
client.at[1] -= 2920;
|
const alloc = box.get_allocation();
|
||||||
|
let monitor = box.get_display()
|
||||||
|
.get_monitor_at_point(alloc.x, alloc.y);
|
||||||
|
|
||||||
|
monitor = Hyprland.monitors.find((mon) => {
|
||||||
|
return mon.make === monitor.manufacturer &&
|
||||||
|
mon.model === monitor.model;
|
||||||
|
});
|
||||||
|
|
||||||
|
client.at[0] -= monitor.x;
|
||||||
|
client.at[1] -= monitor.y;
|
||||||
|
|
||||||
// Special workspaces that haven't been opened yet
|
// Special workspaces that haven't been opened yet
|
||||||
// return a size of 0. We need to set them to default
|
// return a size of 0. We need to set them to default
|
||||||
|
|
|
@ -75,7 +75,7 @@ export const Overview = () => {
|
||||||
`,
|
`,
|
||||||
}),
|
}),
|
||||||
|
|
||||||
// TODO: throttle his?
|
// TODO: throttle this?
|
||||||
setup: (self) => {
|
setup: (self) => {
|
||||||
self.on('get-child-position', (_, ch) => {
|
self.on('get-child-position', (_, ch) => {
|
||||||
if (ch === mainBox) {
|
if (ch === mainBox) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue