mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-17 06:46:39 -04:00
wlr_cursor: Don't manage output cursor swapchain in wlr_output
No reason to have the wlr_output manage our cursor swapchain, wlr_output_cursor can manage the swapchain itself.
This commit is contained in:
parent
d817ebb80f
commit
c293dec174
5 changed files with 16 additions and 14 deletions
|
|
@ -14,6 +14,7 @@
|
|||
#include <time.h>
|
||||
#include <wayland-server-protocol.h>
|
||||
#include <wayland-util.h>
|
||||
#include <wlr/render/swapchain.h>
|
||||
#include <wlr/render/wlr_renderer.h>
|
||||
#include <wlr/types/wlr_buffer.h>
|
||||
#include <wlr/util/addon.h>
|
||||
|
|
@ -36,6 +37,7 @@ struct wlr_output_mode {
|
|||
|
||||
struct wlr_output_cursor {
|
||||
struct wlr_output *output;
|
||||
struct wlr_swapchain *swapchain;
|
||||
double x, y;
|
||||
bool enabled;
|
||||
bool visible;
|
||||
|
|
@ -193,7 +195,6 @@ struct wlr_output {
|
|||
|
||||
struct wl_list cursors; // wlr_output_cursor.link
|
||||
struct wlr_output_cursor *hardware_cursor;
|
||||
struct wlr_swapchain *cursor_swapchain;
|
||||
struct wlr_buffer *cursor_front_buffer;
|
||||
int software_cursor_locks; // number of locks forcing software cursors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue