Skip to content

Commit

Permalink
Fix workarea access
Browse files Browse the repository at this point in the history
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
  • Loading branch information
Caellian committed Apr 30, 2024
1 parent 061fd11 commit d8fb65e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/display-wayland.cc
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,10 @@ static void output_geometry(void *data, struct wl_output *wl_output, int32_t x,
// Maybe also support (if XDG protocol not reported):
// - kde-output-management(-v2)
// - wlr-output-management-unstable-v1
workarea.x = x; // TODO: use xdg_output.logical_position
workarea.y = y;
workarea.width = physical_width;
workarea.height = physical_height;
workarea[0] = x; // TODO: use xdg_output.logical_position
workarea[1] = y;
workarea[2] = physical_width;
workarea[3] = physical_height;
}

static void output_mode(void *data, struct wl_output *wl_output, uint32_t flags,
Expand Down

0 comments on commit d8fb65e

Please sign in to comment.