From a5d56e24648fee8678beffa1cd1a0a08c56d5641 Mon Sep 17 00:00:00 2001 From: Yessiest Date: Sun, 21 May 2023 15:10:00 +0400 Subject: [PATCH] hotfixes --- modules/rules_stub.lua | 16 +++++++++++++++- widgets/supermenu/applications-tab.lua | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/modules/rules_stub.lua b/modules/rules_stub.lua index 7d193ac..6c2f16c 100644 --- a/modules/rules_stub.lua +++ b/modules/rules_stub.lua @@ -19,6 +19,20 @@ awful.rules.rules = gears.table.join(awful.rules.rules, { end} }, { rule = { fullscreen = true }, - properties = {placement = awful.placement.centered} + properties = { + titlebars_enabled = false, + floating = true, + border_width = 0, + border_color = 0, + size_hints_honor = false, + placement=awful.placement.no_offscreen + }, + callback = function(c) + gears.timer.delayed_call(function() + if c.valid then + c:geometry(c.screen.geometry) + end + end) + end } }) diff --git a/widgets/supermenu/applications-tab.lua b/widgets/supermenu/applications-tab.lua index eff3c1e..a3ea011 100644 --- a/widgets/supermenu/applications-tab.lua +++ b/widgets/supermenu/applications-tab.lua @@ -248,8 +248,8 @@ return function(args) awesome.connect_signal("xdg::all_finished",function() for _,v in pairs(xdg.apps) do table.insert(pager.list,icon_cache:get(v.icon or beautiful.icon_default,v.name,v.exec)) - pager:update() end + pager:update() end) return widget,icon end