summaryrefslogtreecommitdiff
path: root/src/widgets
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-18 20:07:00 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-18 20:07:00 +1100
commitc7877c35008794c737e57c12338551a10ab34895 (patch)
tree3218cc46a562776bf89a2ad6018025dfdf5db76b /src/widgets
parentrequests: change format (diff)
downloadcaelestia-shell-c7877c35008794c737e57c12338551a10ab34895.tar.gz
caelestia-shell-c7877c35008794c737e57c12338551a10ab34895.tar.bz2
caelestia-shell-c7877c35008794c737e57c12338551a10ab34895.zip
remove unnecessary var
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/popupwindow.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/popupwindow.ts b/src/widgets/popupwindow.ts
index 9f5192e..335260d 100644
--- a/src/widgets/popupwindow.ts
+++ b/src/widgets/popupwindow.ts
@@ -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);