aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-03-11 11:45:01 +0100
committerBrian Ashworth <bosrsf04@gmail.com>2019-03-11 12:43:01 -0400
commit076257a978ce5f93b9b1613e43a067e602b5b041 (patch)
treef87dcb88bee0097cbf741df180f17d06299087cf /include
parentbcde298a719f60b9913133dbd2a169dedbc8dd7d (diff)
downloadsway-076257a978ce5f93b9b1613e43a067e602b5b041.tar.xz
Stop using wlr_output->{lx,ly}
Also fixes sway_output->{lx,ly,width,height} not being updated. Also fixes output_get_in_direction adding buffer coords to layout coords.
Diffstat (limited to 'include')
-rw-r--r--include/sway/output.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sway/output.h b/include/sway/output.h
index ea7a2174..32ed1e28 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -29,8 +29,8 @@ struct sway_output {
struct timespec last_frame;
struct wlr_output_damage *damage;
- int lx, ly;
- int width, height;
+ int lx, ly; // layout coords
+ int width, height; // transformed buffer size
bool enabled, configured;
list_t *workspaces;
@@ -144,7 +144,7 @@ void output_get_box(struct sway_output *output, struct wlr_box *box);
enum sway_container_layout output_get_default_layout(
struct sway_output *output);
-void render_rect(struct wlr_output *wlr_output,
+void render_rect(struct sway_output *output,
pixman_region32_t *output_damage, const struct wlr_box *_box,
float color[static 4]);