xdg-shell: Add set_margin request
This is used to figure out the size of "invisible" decorations, which we'll use to better know the visible extents of the surface, which we can use for constraining, titlebars, and more.
This commit is contained in:
committed by
Kristian Høgsberg
parent
2097fe12d4
commit
7407345446
@@ -3171,6 +3171,18 @@ xdg_surface_pong(struct wl_client *client,
|
||||
surface_pong(shsurf, serial);
|
||||
}
|
||||
|
||||
static void
|
||||
xdg_surface_set_margin(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
int32_t left,
|
||||
int32_t right,
|
||||
int32_t top,
|
||||
int32_t bottom)
|
||||
{
|
||||
/* Do nothing, Weston doesn't try to constrain or place
|
||||
* surfaces in any special manner... */
|
||||
}
|
||||
|
||||
static void
|
||||
xdg_surface_set_app_id(struct wl_client *client,
|
||||
struct wl_resource *resource,
|
||||
@@ -3309,6 +3321,7 @@ xdg_surface_unset_maximized(struct wl_client *client,
|
||||
static const struct xdg_surface_interface xdg_surface_implementation = {
|
||||
xdg_surface_destroy,
|
||||
xdg_surface_set_transient_for,
|
||||
xdg_surface_set_margin,
|
||||
xdg_surface_set_title,
|
||||
xdg_surface_set_app_id,
|
||||
xdg_surface_pong,
|
||||
|
||||
Reference in New Issue
Block a user