]> git.mdlowis.com Git - proto/labwc.git/commit
src/output.c: skip painting output when session is not active
authorenometh <57609820+enometh@users.noreply.github.com>
Mon, 11 Nov 2024 23:33:38 +0000 (05:03 +0530)
committerGitHub <noreply@github.com>
Mon, 11 Nov 2024 23:33:38 +0000 (00:33 +0100)
commit2d3be5ab561056314206d98e6a592a4ec9f99a77
treeea9c86502e1566731080c51e6c79fac30e86f1b7
parent8a5608a3af0973b3746083075eb9be16c6c32b83
src/output.c: skip painting output when session is not active

On switching to a console vt when an application is painting,
labwc produces a stream of log messages of the form
```
 `00:00:52.345 [ERROR] [../src/output-state.c:45] Failed to commit frame` lines.
``

This patch tries to follow the lead from the solution to this problem
in https://github.com/WayfireWM/wayfire/pull/2484.patch

As noted in that commit message, this patch depends on unreleased
patches to seatd (master) to work reliably, and there may be a a risk
of locking up the labwc if it is used with the seatd-0.8.0.

Check that the session is initialized (is not NULL) before checking it
is active.

Co-authored-by: Madhu <enometh@net.meer>
src/output.c