src/ui/window/wayland.c
static void
shell_surface_handle_configure (void *data,
    struct wl_shell_surface *shell_surface, uint32_t edges, int32_t width,
    int32_t height)
{
  (void) shell_surface;
  (void) edges;

  kk_window_wayland_t *win = (kk_window_wayland_t *) data;

  if ((width < 10) || (height < 10))
    return;

  wl_egl_window_resize (win->window, width, height, 0, 0);
  cairo_gl_surface_set_size (win->cairo.surface, width, height);

  kk_widget_set_size ((kk_widget_t *) win, width, height);
  kk_widget_invalidate ((kk_widget_t *) win);
}
/**
 * The configure event asks the client to resize its surface.
 */
The configure event asks the client to resize its surface.
The configure event asks the client to resize its surface .
static void
shell_surface_handle_configure (void *data,
    struct wl_shell_surface *shell_surface, uint32_t edges, int32_t width,
    int32_t height)
{
  (void) shell_surface;
  (void) edges;
  kk_window_wayland_t *win = (kk_window_wayland_t *) data;
  if ((width < 10) || (height < 10))
    return;
  wl_egl_window_resize (win->window, width, height, 0, 0);
  cairo_gl_surface_set_size (win->cairo.surface, width, height);
  kk_widget_set_size ((kk_widget_t *) win, width, height);
  kk_widget_invalidate ((kk_widget_t *) win);
}
static void shell_surface_handle_configure ( void * data , struct wl_shell_surface * shell_surface , uint32_t edges , int32_t width , int32_t height ) { ( void ) shell_surface ; ( void ) edges ; kk_window_wayland_t * win = ( kk_window_wayland_t * ) data ; if ( ( width < 10 ) || ( height < 10 ) ) return ; wl_egl_window_resize ( win -> window , width , height , 0 , 0 ) ; cairo_gl_surface_set_size ( win -> cairo . surface , width , height ) ; kk_widget_set_size ( ( kk_widget_t * ) win , width , height ) ; kk_widget_invalidate ( ( kk_widget_t * ) win ) ; }
The configure event asks the client to resize its surface.
The configure event asks the client to resize its surface .