mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
output: fix software cursors damage tracking
This commit is contained in:
parent
b296481007
commit
e29a0df8c1
10 changed files with 74 additions and 33 deletions
|
|
@ -62,7 +62,7 @@ static void handle_output_frame(struct output_state *output,
|
|||
sample->clear_color[2], sample->clear_color[3]);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
wlr_output_swap_buffers(wlr_output);
|
||||
wlr_output_swap_buffers(wlr_output, NULL, NULL);
|
||||
}
|
||||
|
||||
static void handle_output_add(struct output_state *ostate) {
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ static void handle_output_frame(struct output_state *output,
|
|||
}
|
||||
|
||||
wlr_renderer_end(sample->renderer);
|
||||
wlr_output_swap_buffers(wlr_output);
|
||||
wlr_output_swap_buffers(wlr_output, NULL, NULL);
|
||||
}
|
||||
|
||||
static void handle_output_add(struct output_state *ostate) {
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ static void handle_output_frame(struct output_state *output,
|
|||
sample->clear_color[2], sample->clear_color[3]);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
wlr_output_swap_buffers(wlr_output);
|
||||
wlr_output_swap_buffers(wlr_output, NULL, NULL);
|
||||
}
|
||||
|
||||
static void handle_output_add(struct output_state *ostate) {
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ static void handle_output_frame(struct output_state *output, struct timespec *ts
|
|||
}
|
||||
|
||||
wlr_renderer_end(sample->renderer);
|
||||
wlr_output_swap_buffers(wlr_output);
|
||||
wlr_output_swap_buffers(wlr_output, NULL, NULL);
|
||||
|
||||
long ms = (ts->tv_sec - output->last_frame.tv_sec) * 1000 +
|
||||
(ts->tv_nsec - output->last_frame.tv_nsec) / 1000000;
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ void handle_output_frame(struct output_state *output, struct timespec *ts) {
|
|||
glClearColor(sample->color[0], sample->color[1], sample->color[2], 1.0);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
wlr_output_swap_buffers(output->output);
|
||||
wlr_output_swap_buffers(output->output, NULL, NULL);
|
||||
}
|
||||
|
||||
int main() {
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ static void handle_output_frame(struct output_state *output, struct timespec *ts
|
|||
}
|
||||
|
||||
wlr_renderer_end(sample->renderer);
|
||||
wlr_output_swap_buffers(wlr_output);
|
||||
wlr_output_swap_buffers(wlr_output, NULL, NULL);
|
||||
}
|
||||
|
||||
static void handle_tool_axis(struct tablet_tool_state *tstate,
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ static void handle_output_frame(struct output_state *output, struct timespec *ts
|
|||
}
|
||||
|
||||
wlr_renderer_end(sample->renderer);
|
||||
wlr_output_swap_buffers(wlr_output);
|
||||
wlr_output_swap_buffers(wlr_output, NULL, NULL);
|
||||
}
|
||||
|
||||
static void handle_touch_down(struct touch_state *tstate, int32_t touch_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue