コード例 #1
0
ファイル: simple-egl.c プロジェクト: rzr/weston
static void
touch_handle_down(void *data, struct wl_touch *wl_touch,
		  uint32_t serial, uint32_t time, struct wl_surface *surface,
		  int32_t id, wl_fixed_t x_w, wl_fixed_t y_w)
{
	struct display *d = (struct display *)data;

	xdg_surface_move(d->window->xdg_surface, d->seat, serial);
}
コード例 #2
0
ファイル: simple-egl.c プロジェクト: rzr/weston
static void
pointer_handle_button(void *data, struct wl_pointer *wl_pointer,
		      uint32_t serial, uint32_t time, uint32_t button,
		      uint32_t state)
{
	struct display *display = data;

	if (button == BTN_LEFT && state == WL_POINTER_BUTTON_STATE_PRESSED)
		xdg_surface_move(display->window->xdg_surface,
				 display->seat, serial);
}
コード例 #3
0
ファイル: xdgshell_v5.cpp プロジェクト: KDE/kwayland
void XdgShellSurfaceUnstableV5::Private::move(Seat *seat, quint32 serial)
{
    xdg_surface_move(xdgsurfacev5, *seat, serial);
}