mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
rootston: damage views when moved
This commit is contained in:
parent
5089f2d9fb
commit
01bcc2ab01
7 changed files with 52 additions and 33 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue