Fixed Wayland window decoration.
This commit is contained in:
parent
04bf7d43ff
commit
2ef28273b0
@ -72,6 +72,9 @@ namespace ehs
|
|||||||
void Window::SurfaceConfigure(void* data, xdg_surface* xdg_surface, UInt_32 serial)
|
void Window::SurfaceConfigure(void* data, xdg_surface* xdg_surface, UInt_32 serial)
|
||||||
{
|
{
|
||||||
xdg_surface_ack_configure(xdg_surface, serial);
|
xdg_surface_ack_configure(xdg_surface, serial);
|
||||||
|
|
||||||
|
if (data)
|
||||||
|
wl_surface_commit(((Window*)data)->wlSurface);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::ShellPing(void* data, xdg_wm_base* shell, UInt_32 serial)
|
void Window::ShellPing(void* data, xdg_wm_base* shell, UInt_32 serial)
|
||||||
@ -279,7 +282,7 @@ namespace ehs
|
|||||||
|
|
||||||
static constexpr xdg_surface_listener surfaceListener = {SurfaceConfigure};
|
static constexpr xdg_surface_listener surfaceListener = {SurfaceConfigure};
|
||||||
|
|
||||||
xdg_surface_add_listener(xdgSurface, &surfaceListener, nullptr);
|
xdg_surface_add_listener(xdgSurface, &surfaceListener, this);
|
||||||
|
|
||||||
xdgToplevel = xdg_surface_get_toplevel(xdgSurface);
|
xdgToplevel = xdg_surface_get_toplevel(xdgSurface);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user