Commit Graph

10927 Commits

Author SHA1 Message Date
Aire-One a4ca3fdd43 add(gh-actions) Lua5.4 Build and Install LGI step
The latest packaged version of LGI doesn't support Lua 5.4. We need
to build the git master version.
2022-01-22 15:40:09 +01:00
Aire-One 50c3301357 add(gh-actions) Build and Install Lua 5.4 step
Ubuntu 20.04 hasn't a Lua 5.4 package. For now, GitHub actions run
with this version of Ubuntu. We can manually build and install
Lua 5.4 in the pipeline, waiting for GitHub to release a newer
version of Ubuntu for their Actions.
2022-01-22 15:40:09 +01:00
Aire-One b6b9a770a3 add(gh-actions) Lua 5.4 matrix 2022-01-22 15:40:09 +01:00
tuwuna cd4008c249
Refocus focused window for focus in events on the root window. (#3543)
This deals with (admittedly somewhat misbehaving) clients which
use XSetInputFocus to take focus, but then don't properly restore
focus. This has been observed with TK apps, but also, e.g., Steam.

Ported from a06e66982b by @psychon 

Fixes https://github.com/awesomeWM/awesome/issues/3379
2022-01-22 03:28:24 -08:00
Xinhao Yuan 21b908bef9
Fix a regression that only property::x and property::width are emitted when all {x,y,width,height} properties are changed. (#3537) 2021-12-30 13:23:44 -08:00
Xinhao Yuan b49a53f6dd
Multi-row support of systray by taking a beautiful variable specifying the maximum number of rows to fill per column. (#3520)
Also, fix the fitting logic so that the result width and height are fitted in the available space. Previously the result dimensions can be larger than the input, but cropped in e7a21947e6/lib/wibox/widget/base.lua (L547). But still it can cause problems e.g. when used inside wibox.container.place.
2021-12-30 13:22:31 -08:00
HumblePresent 7451c6952e
fix: Docs update to specify rule callback as being run before properties applied
fix(rule_callback): Docs update to specify rule callback as being run before
properties applied
2021-12-23 14:02:24 -08:00
Emmanuel Lepage Vallée 1413f0c4b9
Merge pull request #3513 from necauqua/fix-timer
Signalled error: bad argument #3 to 'timeout_add' (number has no integer representation)
2021-12-22 12:52:07 -08:00
Emmanuel Lepage Vallée 790e535017
Merge pull request #3529 from sclu1034/feature/docs
Various docs improvements
2021-12-22 12:05:43 -08:00
Lucas Schwiderski 1ab0f892d2
feat(spec): Create visual error for widget layout tests (#3530)
The assert for `widget:layout` now visualizes the expected and actual
widget structure for comparison.

Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-12-21 14:51:22 -08:00
Grzegorz Bednarski f353499230
Support minimized client property in tasklist icons (#3526) 2021-12-21 11:48:53 -08:00
Lucas Schwiderski 632b0c0d7b
docs: Add code styling for first line in item descriptions
LDoc doesn't wrap the first line/paragraph of an item's description
in `<p>` tags, so the previous style rules wouldn't apply to them.
2021-12-21 16:34:26 +01:00
Lucas Schwiderski 1953c97ce3
docs: Add code styling for parameter default values 2021-12-21 16:33:54 +01:00
Lucas Schwiderski 1dd1e2c994
docs: Remove "last updated" timestamp
The setup to have fixed values for the calendar widget examples
broke the timestamp, and it would always show the same date.
Additionally, even the v4.3 doc was last updated this year (2021),
while there was no change to that version's code in three years.
2021-12-21 15:03:30 +01:00
Lucas Schwiderski 5ac0829f5d
docs(w.w.slider): Add value signal to initial example
Since the primary use case of the slider widget is to do something
with the value when it changes, the initial example should show
how to do that.
2021-12-21 11:55:36 +01:00
Lucas Schwiderski e55d1d41f3
docs(g.timer): Fix typo 2021-12-21 10:46:43 +01:00
Lucas Schwiderski e4afd437e4
docs(mousegrabber): Prevent Markdown parsing in identifier names 2021-12-21 10:25:05 +01:00
Lucas Schwiderski b343cb8111
docs(g.timer): Improve wording 2021-12-21 09:09:09 +01:00
Lucas Schwiderski 7b13f80778
docs(ruled): Fix incorrect property documentation
Commit history suggests that this was just a mistake when writing
the file. Nothing suggests that the implementation was supposed to
changed instead.
2021-12-21 08:38:19 +01:00
Lucas Schwiderski 869e63fcdc
doc(w.w.textbox): Make alignment property descriptions consistent
Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
2021-12-14 19:09:42 +01:00
Aire-One 70524e72fa
Merge pull request #3519 from HumblePresent/fix_notif_register
Apply presets before registering notification
2021-12-09 21:11:17 +01:00
Actionless Loveless 1932bd017f
doc(readme): link to building and testing (fixes #3514) (#3515) 2021-11-28 14:59:51 -08:00
HumblePresent 030073fee7 Apply presets before registering notification 2021-11-26 13:22:58 -06:00
Anton Bulakh 71d08ab6ec
Use gmath.round 2021-11-23 08:45:52 +02:00
Anton Bulakh e963d37cc4
Fix widget repaint printed errors 2021-11-22 12:39:16 +02:00
Anton Bulakh e64446082b
Fix timer errors 2021-11-22 12:24:20 +02:00
Emmanuel Lepage Vallée e7a21947e6
Merge pull request #3509 from Aire-One/fix/3508
[doc] Small improvements on the client's icons documentation
2021-11-21 12:01:39 -08:00
Emmanuel Lepage Vallée d328f92fdb
Merge pull request #3503 from sarubo/make_markup_available
fix: make markup available
2021-11-21 12:01:06 -08:00
sarubo 8d61790be7 doc: Add the markup example of popup_calendar
Refer to tests/examples/awful/widget/calendar_popup/default.lua
2021-11-21 23:49:46 +09:00
sarubo 03e437e32a calendar_popup: Fix markup not working 2021-11-21 23:42:00 +09:00
Aire-One aa378a1d4c
fix(client_get_some_icon) loosness about fail
Review @sclu1034
2021-11-15 22:44:26 +01:00
Aire-One 219cff8726 doc(icon) note on default value 2021-11-15 19:18:02 +01:00
Aire-One ea349cee6a doc(client_get_some_icon) Improve description 2021-11-15 19:18:02 +01:00
Aire-One 0246c44d4f
Merge pull request #3504 from Elv13/fix_build
build: Fix a recent regression when tests are built.
2021-11-14 13:22:46 +01:00
Lucas Schwiderski 4d111db7b2 build: Fix a recent regression when tests are built.
Fix #3502
2021-11-13 19:28:12 -08:00
Emmanuel Lepage Vallée 062ecfb6f0
Merge pull request #3490 from Elv13/less_flacky_tests
Less flacky tests
2021-11-13 00:42:18 -08:00
Jezer Mejía bf74f249d4
LC_CTYPE replaced with LC_ALL (#3492) 2021-11-09 09:13:28 +01:00
Emmanuel Lepage Vallée 2eb035e125
Merge pull request #3493 from Elv13/progressbar_doc
Improve the progressbar doc with more examples.
2021-11-03 12:40:56 -07:00
Emmanuel Lepage Vallée d95934d209
Merge pull request #3491 from Elv13/textbox_doc
Improve the textbox widget documentation.
2021-11-03 12:40:39 -07:00
Emmanuel Lepage Vallee 76704b33e7 progressbar: Make `ticks` and `bar_shape` compatible with each other.
It looked horrible/buggy when combined. Now it looks like people would
expect it to work. Another problem was the `bar_border_width` look
when `ticks` was `true.
2021-11-02 20:36:07 -07:00
Emmanuel Lepage Vallee 0afb719f82 doc: Improve the progressbar doc.
Another commit in the "lets finish the widget doc" serie.
2021-11-02 20:36:07 -07:00
Emmanuel Lepage Vallee 9dcfde32e0 naughty: Never hold a strong reference to the notification in the box.
luajit was failing to GC the notification about 5% of the time. This
commit stores all widget notifications in a weak table and don't let
any lambda access the parent object notification object.

Each of those changes reduces the failure rate. There might still be
a couple in there, but the test passed 200x on my laptop with 100%
success rate.
2021-10-31 19:30:17 -07:00
Emmanuel Lepage Vallee 6e8b0d5a85 ci: Be faster. 2021-10-31 13:37:33 -07:00
Emmanuel Lepage Vallee 295538e389 tests: Force GTK3 for the client test.
GTK4 removes iconify and deiconify and replaces them with
minimize and unminimize.
2021-10-31 13:37:33 -07:00
Emmanuel Lepage Vallee a08191913e tests: Blind attempt at making a flacky test under luajit stable.
I could not reproduce the issue locally.
2021-10-31 13:37:33 -07:00
Emmanuel Lepage Vallee 90a2b003a2 tests: Remove a noisy print 2021-10-31 13:37:33 -07:00
Emmanuel Lepage Vallee b4beb2308b tests: Add a simple systray test.
Compile a random little C program found on stack overflow to make
a systray. The goal is to make the `event.c` tests less flacky.
2021-10-31 13:37:32 -07:00
Uli Schlachter 4955ec584f tests: Add a systray program. 2021-10-31 13:36:17 -07:00
Emmanuel Lepage Vallee 1fa0204d80 doc: Add many textbox examples. 2021-10-30 22:51:40 -07:00
Emmanuel Lepage Vallee c5f81d4aab doc: Add some new lines in an old example. 2021-10-30 22:44:31 -07:00