remove unnecessary var
This commit is contained in:
parent
b44b479b3d
commit
c7877c3500
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ export default class PopupWindow extends Widget.Window {
|
|||
|
||||
popup_at_widget(widget: JSX.Element, event: Gdk.Event | Astal.ClickEvent) {
|
||||
const { width, height } = widget.get_allocation();
|
||||
const [_, x, y] = event instanceof Gdk.Event ? event.get_coords() : [null, event.x, event.y];
|
||||
const [, x, y] = event instanceof Gdk.Event ? event.get_coords() : [null, event.x, event.y];
|
||||
const { x: cx, y: cy } = AstalHyprland.get_default().get_cursor_position();
|
||||
this.anchor = Astal.WindowAnchor.TOP | Astal.WindowAnchor.LEFT;
|
||||
this.marginLeft = cx + ((width - this.get_preferred_width()[1]) / 2 - x);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue