mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-09 13:29:48 -05:00
Add origin information to output.geometry event
This commit is contained in:
parent
aa82767c98
commit
f8fc08f771
4 changed files with 9 additions and 5 deletions
|
|
@ -1272,12 +1272,12 @@ static const struct wl_drm_listener drm_listener = {
|
|||
static void
|
||||
display_handle_geometry(void *data,
|
||||
struct wl_output *output,
|
||||
int32_t width, int32_t height)
|
||||
int32_t x, int32_t y, int32_t width, int32_t height)
|
||||
{
|
||||
struct display *display = data;
|
||||
|
||||
display->screen_allocation.x = 0;
|
||||
display->screen_allocation.y = 0;
|
||||
display->screen_allocation.x = x;
|
||||
display->screen_allocation.y = y;
|
||||
display->screen_allocation.width = width;
|
||||
display->screen_allocation.height = height;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue