Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.
/ swww Public archive

Commit 40dcb40

Browse files
authored
Merge pull request #443 from shumvgolove/wl_output
check if wl_output contains the CURRENT mode
2 parents 7ceddc0 + b511696 commit 40dcb40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

daemon/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ impl wayland::wl_output::EvHandler for Daemon {
445445
_refresh: i32,
446446
) {
447447
// the protocol states we should not rely on non-current modes
448-
if matches!(flags, wayland::wl_output::Mode::CURRENT) {
448+
if flags.contains(wayland::wl_output::Mode::CURRENT) {
449449
for wallpaper in self.wallpapers.iter() {
450450
let mut wallpaper = wallpaper.borrow_mut();
451451
if wallpaper.has_output(sender_id) {

0 commit comments

Comments
 (0)