From e8dfae3013c5b7d1864b64224cc21b799d9076cf Mon Sep 17 00:00:00 2001 From: Yessiest Date: Sun, 4 Sep 2022 16:05:41 +0400 Subject: [PATCH] Minor bugfix --- .gitignore | 1 + desktop.conf | 11 ++++++----- libs/context_menu.lua | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 6b81415..ea05d8b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/desktop.conf /wallpaper.txt /links /libs/pam diff --git a/desktop.conf b/desktop.conf index 14a1ada..88fcd49 100644 --- a/desktop.conf +++ b/desktop.conf @@ -1,10 +1,10 @@ # Global variables [global] -terminal = "$HOME/.local/bin/st" -browser = "prime-run librewolf" -modkey = "Mod4" -theme = "reno98" -shell = "zsh" +terminal = "$HOME/.local/bin/st" +browser = "prime-run librewolf" +modkey = "Mod4" +theme = "reno98" +shell = "zsh" # Keybindings # Format: (++...)+ = "" @@ -29,3 +29,4 @@ modkey+m = ":client.maximize" # Custom keys Print = "flameshot gui" +Shift+Print = "flameshot launcher" diff --git a/libs/context_menu.lua b/libs/context_menu.lua index 52fb1d5..b83253d 100644 --- a/libs/context_menu.lua +++ b/libs/context_menu.lua @@ -19,7 +19,7 @@ local function position_popup(popup,widget,style) -- Figure out the geometry of the base widget local widget_geo for k,v in pairs(mouse.current_widgets or {}) do - if widget == v then + if (widget == v) and mouse.current_widget_geometries then widget_geo = mouse.current_widget_geometries[k] end end