Fix white screen due to bad cast

This commit is contained in:
emersion 2018-03-30 17:13:13 -04:00
parent a776ecbb86
commit 50219564c2
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -271,9 +271,8 @@ renderer_end:
static void damage_handle_frame(struct wl_listener *listener, void *data) {
struct sway_output *output =
wl_container_of(listener, output, damage_frame);
struct wlr_output *wlr_output = data;
if (!wlr_output->enabled) {
if (!output->wlr_output->enabled) {
return;
}