backend/x11: only send frames when the window is mapped

Tested with WindowMaker. When switching to another workspace,
minimizing, or rolling up the window, we get an UnmapNotify event, and a
corresponding MapNotify event when the window appears on screen again.

Fixes #2675
This commit is contained in:
Ilia Mirkin 2021-01-23 11:37:22 -05:00
parent ef94e7e847
commit 04d448317a
3 changed files with 26 additions and 4 deletions

View file

@ -51,6 +51,7 @@ struct wlr_x11_output {
pixman_region32_t exposed;
uint64_t last_msc;
bool mapped;
struct {
struct wlr_swapchain *swapchain;