wayland: Implement set_geometry_hints vfunc
Our trivial implementation simply saves the passed in parameters into the Wayland private data structure.
This commit is contained in:
@ -146,6 +146,9 @@ struct _GdkWindowImplWayland
|
|||||||
|
|
||||||
/* Time of most recent user interaction. */
|
/* Time of most recent user interaction. */
|
||||||
gulong user_time;
|
gulong user_time;
|
||||||
|
|
||||||
|
GdkGeometry geometry_hints;
|
||||||
|
GdkWindowHints geometry_mask;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GdkWindowImplWaylandClass
|
struct _GdkWindowImplWaylandClass
|
||||||
@ -900,10 +903,17 @@ gdk_wayland_window_set_geometry_hints (GdkWindow *window,
|
|||||||
const GdkGeometry *geometry,
|
const GdkGeometry *geometry,
|
||||||
GdkWindowHints geom_mask)
|
GdkWindowHints geom_mask)
|
||||||
{
|
{
|
||||||
|
GdkWindowImplWayland *impl;
|
||||||
|
|
||||||
if (GDK_WINDOW_DESTROYED (window) ||
|
if (GDK_WINDOW_DESTROYED (window) ||
|
||||||
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
!WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
|
||||||
|
|
||||||
|
impl->geometry_hints = *geometry;
|
||||||
|
impl->geometry_mask = geom_mask;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GDK_HINT_POS
|
* GDK_HINT_POS
|
||||||
* GDK_HINT_USER_POS
|
* GDK_HINT_USER_POS
|
||||||
|
|||||||
Reference in New Issue
Block a user