@@ -43,7 +43,8 @@ struct SurfaceDamageListener {
|
||||
struct wl_listener destroy;
|
||||
};
|
||||
|
||||
static void surface_damage_client_commit(struct wl_listener *listener, void *data)
|
||||
static void surface_damage_client_commit(
|
||||
struct wl_listener *listener, void *data)
|
||||
{
|
||||
(void)listener;
|
||||
struct wlr_surface *surface = data;
|
||||
@@ -59,9 +60,9 @@ static void surface_damage_client_commit(struct wl_listener *listener, void *dat
|
||||
}
|
||||
|
||||
int surface_width = surface->pending.width > 0 ? surface->pending.width
|
||||
: surface->current.width;
|
||||
: surface->current.width;
|
||||
int surface_height = surface->pending.height > 0 ? surface->pending.height
|
||||
: surface->current.height;
|
||||
: surface->current.height;
|
||||
int buffer_width = surface->pending.buffer_width > 0
|
||||
? surface->pending.buffer_width
|
||||
: surface->current.buffer_width;
|
||||
@@ -1864,7 +1865,6 @@ bool LunarWM_wayland_init(LunarWM *this)
|
||||
wl_signal_add(&this->wayland.compositor->events.new_surface,
|
||||
&this->wayland.new_surface_listener);
|
||||
|
||||
|
||||
this->wayland.subcompositor
|
||||
= wlr_subcompositor_create(this->wayland.display);
|
||||
if (!this->wayland.subcompositor) {
|
||||
|
||||
Reference in New Issue
Block a user