Commit Graph

9 Commits

Author SHA1 Message Date
eylles 7542251b72
Improved swallowing (#140)
* Make swallowing more robust

Changed the flags for the pstree command so it is a single line with all
ancestors.
Removed usage of sed, grep and tr so the iopopen call should be faster.
Find and match of parent pid in the ancestors string is done in lua so
should be faster.

* Improved swallow filter

Now you cna filter window swallowing with 2 tables, one for clients that
cannot be swallowed (dont_swallow_classname_list) and one for clients
that cannot swallow their parents (cant_swallow_classname_list).

* remove occurences of res var

* renamed functions and theme vars more descriptive

* updated module documentation

* check functions combined, is_in_table  1 return

* add old theme vars for compatibility

* short swallow logic and robust filter assignment

* ignore splash and dialog parents

this prevents krita and similar missbehaving programs from swallowing their
splash window.

* consistent docs formatting

* convert module to use an async function

* removed undefined error() function call
this was probably an error handling/logging on the code i used as template for
the async function and it's callback.

* deal with corner case: parent exits before client

if the parent is destroyed "on background" then awesome will show a warning.

* added meself to authors

i don't see my additions as substantial enough to justify this but... ¯\_(ツ)_/¯
2022-01-04 11:14:12 +01:00
github-actions[bot] 3fc80c7dfd Auto: format source code 2021-08-27 18:01:22 +00:00
Nooo37 bda2e55643
return to previous version for window swallowing; closes #65 (#92)
Window swallowing is still very unreliable (probably by the nature of the task at hand) but at least that makes the module useable again
2021-08-19 12:16:21 +02:00
Nooo37 da886cb1c4
Scratchpad feature (#35) 2021-04-08 20:17:10 +02:00
Nooo37 142b452eb2 moved sync functions to helpers 2021-03-18 15:45:37 +01:00
gokul swaminathan 26198dd8f2
add chrome in the backup dont swallow list 2021-02-14 00:24:07 -08:00
Grumph d41e202b43 Move helpers to one single place 2021-01-24 03:51:08 +01:00
Nooo37 c374a5b513 swallowed clients are removed from all tags 2020-11-02 08:37:39 +01:00
Nooo37 e99aa37209 window swallowing 2020-10-24 11:40:02 +02:00