Compare commits

...

5 commits

Author SHA1 Message Date
Johan Malm
1e406dd649 labnag: use overlay layer by default
Some checks failed
labwc.github.io / notify (push) Has been cancelled
...so that the dialog is still visible when some client is using
fullscreen mode.
2025-10-20 01:24:31 +02:00
Johan Malm
df3ed58d5b NEWS.md: interim update 2025-10-19 20:23:02 +01:00
tokyo4j
261ec3c509 scripts/check: run style check for test files
Co-authored-by: @johanmalm
2025-10-20 04:12:38 +09:00
tokyo4j
d8260feef2 CI: also run on t/ changes 2025-10-20 04:12:38 +09:00
tokyo4j
be44991def tests: remove placeholders for arguments 2025-10-20 04:12:38 +09:00
9 changed files with 64 additions and 12 deletions

View file

@ -18,6 +18,7 @@ on:
- 'include/**' - 'include/**'
- 'protocols/**' - 'protocols/**'
- 'clients/**' - 'clients/**'
- 't/**'
- 'scripts/**' - 'scripts/**'
- '.github/workflows/**' - '.github/workflows/**'

53
NEWS.md
View file

@ -115,6 +115,51 @@ differently [#3099]. There is a pending fix [wlroots-5159].
[unreleased-commits] [unreleased-commits]
### Added
- With the window-switcher custom field state specifiers 's' and 'S', show 's'
for shaded window @domo141 [#2895]
- Support `xdg-dialog` protocol to enable better handling of modal dialogs @xi
[#3134]
- labnag: add --keyboard-focus option @tokyo4j [#3120]
- Allow window switcher to temporarily unshade windows using config option
`<windowSwitcher unshade="yes|no"/>` @Amodio @Consolatis [#3124]
- For the 'classic' style window-switcher, add the following theme options:
- `osd.window-switcher.style-classic.item.active.border.color`
- `osd.window-switcher.style-classic.item.active.bg.color`
@tokyo4j [#3118]
### Fixed
- Don't remove newlines when parsing config, menu and XBM because doing so can
cause parser error in some unusual situations like the one shown below.
@tokyo4j [#3148]
```
<!--
-
- Some comments
-
-->
```
### Changed
- If XML documents (like rc.xml and menu.xml) have an XML declaration (typically
`<?xml version="1.0"?>`), this XML declaration must be the first thing in the
document. In previous versions, line breaks (`\n`) were allowed before due to
the way the files were parsed, but this is approach caused other issues like
[#3145] and is contrary to XML syntax. [#3148] [#3153]
- With the window-switcher custom field state specifiers 's' and 'S', change the
display order from M|m|F to m|s|M|F; and increase the size from three
characters wide to four. @domo141 [#2895]
- Call labnag with on-demand keyboard interactivity by default @tokyo4j [#3120]
- Temporarily unshade windows when switching windows. Restore old behaviour with
`<windowSwitcher unshade="no"/>` @Amodio @Consolatis [#3124]
- In the classic style window-switcher, the default color of the selected window
item has been changed to inherit the border color but with 15% opacity
@tokyo4j [#3118]
## 0.9.2 - 2025-10-10 ## 0.9.2 - 2025-10-10
[0.9.2-commits] [0.9.2-commits]
@ -2804,6 +2849,7 @@ Compile with wlroots 0.12.0 and wayland-server >=1.16
[#2886]: https://github.com/labwc/labwc/pull/2886 [#2886]: https://github.com/labwc/labwc/pull/2886
[#2887]: https://github.com/labwc/labwc/pull/2887 [#2887]: https://github.com/labwc/labwc/pull/2887
[#2891]: https://github.com/labwc/labwc/pull/2891 [#2891]: https://github.com/labwc/labwc/pull/2891
[#2895]: https://github.com/labwc/labwc/pull/2895
[#2909]: https://github.com/labwc/labwc/pull/2909 [#2909]: https://github.com/labwc/labwc/pull/2909
[#2910]: https://github.com/labwc/labwc/pull/2910 [#2910]: https://github.com/labwc/labwc/pull/2910
[#2914]: https://github.com/labwc/labwc/pull/2914 [#2914]: https://github.com/labwc/labwc/pull/2914
@ -2840,4 +2886,11 @@ Compile with wlroots 0.12.0 and wayland-server >=1.16
[#3081]: https://github.com/labwc/labwc/pull/3081 [#3081]: https://github.com/labwc/labwc/pull/3081
[#3097]: https://github.com/labwc/labwc/pull/3097 [#3097]: https://github.com/labwc/labwc/pull/3097
[#3099]: https://github.com/labwc/labwc/pull/3099 [#3099]: https://github.com/labwc/labwc/pull/3099
[#3118]: https://github.com/labwc/labwc/pull/3118
[#3120]: https://github.com/labwc/labwc/pull/3120
[#3124]: https://github.com/labwc/labwc/pull/3124
[#3126]: https://github.com/labwc/labwc/pull/3126 [#3126]: https://github.com/labwc/labwc/pull/3126
[#3134]: https://github.com/labwc/labwc/pull/3134
[#3145]: https://github.com/labwc/labwc/pull/3145
[#3148]: https://github.com/labwc/labwc/pull/3148
[#3153]: https://github.com/labwc/labwc/pull/3153

View file

@ -286,6 +286,7 @@ this is for compatibility with Openbox.
--border-bottom-size 1 \\ --border-bottom-size 1 \\
--button-border-size 3 \\ --button-border-size 3 \\
--keyboard-focus on-demand \\ --keyboard-focus on-demand \\
--layer overlay \\
--timeout 0 --timeout 0
``` ```

View file

@ -19,7 +19,7 @@ run_checks () {
return $? return $?
fi fi
find src/ include/ clients/ \( -name "*.c" -o -name "*.h" \) -type f -print0 | find src/ include/ clients/ t/ \( -name "*.c" -o -name "*.h" \) -type f -print0 |
nice xargs -0 --max-args 1 --max-procs $(nproc) \ nice xargs -0 --max-args 1 --max-procs $(nproc) \
scripts/checkpatch.pl --terse --no-tree --strict --file scripts/checkpatch.pl --terse --no-tree --strict --file
return $? return $?

View file

@ -5661,6 +5661,7 @@ sub process {
$var !~ /^(?:GString|GError|GHashTable)/ && $var !~ /^(?:GString|GError|GHashTable)/ &&
$var !~ /^(?:__FreeBSD__)/ && $var !~ /^(?:__FreeBSD__)/ &&
$var !~ /^(?:RsvgRectangle|RsvgHandle)/ && $var !~ /^(?:RsvgRectangle|RsvgHandle)/ &&
$var !~ /^(?:CMUnitTest)/ &&
$var !~ /^(?:XKB_KEY_XF86Switch_VT_1)/ && $var !~ /^(?:XKB_KEY_XF86Switch_VT_1)/ &&
#Ignore SI style variants like nS, mV and dB #Ignore SI style variants like nS, mV and dB

View file

@ -1646,6 +1646,7 @@ post_processing(void)
"--border-bottom-size 1 " "--border-bottom-size 1 "
"--button-border-size 3 " "--button-border-size 3 "
"--keyboard-focus on-demand " "--keyboard-focus on-demand "
"--layer overlay "
"--timeout 0"); "--timeout 0");
} }
if (!rc.fallback_app_icon_name) { if (!rc.fallback_app_icon_name) {

View file

@ -12,8 +12,6 @@
static void static void
test_expand_title(void **state) test_expand_title(void **state)
{ {
(void)state;
struct buf s = BUF_INIT; struct buf s = BUF_INIT;
char TEMPLATE[] = "foo ~/bar"; char TEMPLATE[] = "foo ~/bar";
@ -58,8 +56,6 @@ test_expand_title(void **state)
static void static void
test_buf_add_fmt(void **state) test_buf_add_fmt(void **state)
{ {
(void)state;
struct buf s = BUF_INIT; struct buf s = BUF_INIT;
buf_add(&s, "foo"); buf_add(&s, "foo");
@ -72,9 +68,12 @@ test_buf_add_fmt(void **state)
static void static void
test_buf_add_char(void **state) test_buf_add_char(void **state)
{ {
(void)state; static const char long_string[] =
"123456789012345678901234567890123456789012345678901234567890 "
const char long_string[] = "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"; "123456789012345678901234567890123456789012345678901234567890 "
"123456789012345678901234567890123456789012345678901234567890 "
"123456789012345678901234567890123456789012345678901234567890 "
"123456789012345678901234567890123456789012345678901234567890 ";
size_t len = strlen(long_string); size_t len = strlen(long_string);
/* /*

View file

@ -11,8 +11,6 @@
static void static void
test_str_starts_with(void **state) test_str_starts_with(void **state)
{ {
(void)state;
assert_true(str_starts_with(" foo", 'f', " \t\r\n")); assert_true(str_starts_with(" foo", 'f', " \t\r\n"));
assert_true(str_starts_with("f", 'f', " \t\r\n")); assert_true(str_starts_with("f", 'f', " \t\r\n"));
assert_false(str_starts_with(" foo", '<', " ")); assert_false(str_starts_with(" foo", '<', " "));

View file

@ -100,8 +100,6 @@ struct test_case {
static void static void
test_lab_xml_expand_dotted_attributes(void **state) test_lab_xml_expand_dotted_attributes(void **state)
{ {
(void)state;
for (size_t i = 0; i < ARRAY_SIZE(test_cases); i++) { for (size_t i = 0; i < ARRAY_SIZE(test_cases); i++) {
xmlDoc *doc = xmlReadDoc((xmlChar *)test_cases[i].before, xmlDoc *doc = xmlReadDoc((xmlChar *)test_cases[i].before,
NULL, NULL, 0); NULL, NULL, 0);