void (*close)(struct view *view);
const char *(*get_string_prop)(struct view *view, const char *prop);
void (*map)(struct view *view);
- void (*move)(struct view *view, double x, double y);
+ void (*move)(struct view *view, int x, int y);
void (*set_activated)(struct view *view, bool activated);
void (*set_fullscreen)(struct view *view, bool fullscreen);
void (*unmap)(struct view *view);
struct view_pending_move_resize {
bool update_x, update_y;
- double x, y;
+ int x, y;
uint32_t width, height;
uint32_t configure_serial;
} pending_move_resize;
* For move only, use view_move()
*/
void view_move_resize(struct view *view, struct wlr_box geo);
-void view_move(struct view *view, double x, double y);
+void view_move(struct view *view, int x, int y);
void view_moved(struct view *view);
void view_minimize(struct view *view, bool minimized);
/* view_wlr_output - return the output that a view is mostly on */
}
void
-view_move(struct view *view, double x, double y)
+view_move(struct view *view, int x, int y)
{
if (view->impl->move) {
view->impl->move(view, x, y);
}
static void
-xdg_toplevel_view_move(struct view *view, double x, double y)
+xdg_toplevel_view_move(struct view *view, int x, int y)
{
view->x = x;
view->y = y;
}
static void
-move(struct view *view, double x, double y)
+move(struct view *view, int x, int y)
{
assert(view->xwayland_surface);