aboutsummaryrefslogtreecommitdiff
path: root/rootston/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'rootston/output.c')
-rw-r--r--rootston/output.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/rootston/output.c b/rootston/output.c
index a700ea07..5ccd9eb7 100644
--- a/rootston/output.c
+++ b/rootston/output.c
@@ -337,7 +337,7 @@ static int handle_repaint(void *data) {
return 0;
}
-void output_damage_surface(struct roots_output *output,
+static void output_damage_surface(struct roots_output *output,
struct wlr_surface *surface, double lx, double ly) {
if (!wlr_surface_has_buffer(surface)) {
return;
@@ -355,6 +355,12 @@ void output_damage_surface(struct roots_output *output,
box.width, box.height);
}
+void output_damage_view(struct roots_output *output, struct roots_view *view) {
+ output_damage_surface(output, view->wlr_surface, view->x, view->y);
+
+ // TODO: subsurfaces, popups, etc
+}
+
static void set_mode(struct wlr_output *output,
struct roots_output_config *oc) {
int mhz = (int)(oc->mode.refresh_rate * 1000);