aboutsummaryrefslogtreecommitdiff
path: root/rootston/cursor.c
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-01-21 18:46:19 -0500
committerTony Crisci <tony@dubstepdish.com>2018-01-21 18:46:19 -0500
commite8c407d00e9acaff27973af8df4eaf19b6571d88 (patch)
treef4ce520ae67e8274a38abdb1406faf51d10ae8c3 /rootston/cursor.c
parent54776dd19c20b0d0775a9426e811f81004a9a960 (diff)
rename wlr_deco_part to roots_deco_part
Diffstat (limited to 'rootston/cursor.c')
-rw-r--r--rootston/cursor.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/rootston/cursor.c b/rootston/cursor.c
index 8f6091ee..5430afe5 100644
--- a/rootston/cursor.c
+++ b/rootston/cursor.c
@@ -40,17 +40,17 @@ static void seat_view_deco_motion(struct roots_seat_view *view, double deco_sx,
sy = view->grab_sy;
}
- enum wlr_deco_part parts = view_get_deco_part(view->view, sx, sy);
+ enum roots_deco_part parts = view_get_deco_part(view->view, sx, sy);
- bool is_titlebar = (parts & WLR_DECO_PART_TITLEBAR);
+ bool is_titlebar = (parts & ROOTS_DECO_PART_TITLEBAR);
uint32_t edges = 0;
- if (parts & WLR_DECO_PART_LEFT_BORDER) {
+ if (parts & ROOTS_DECO_PART_LEFT_BORDER) {
edges |= WLR_EDGE_LEFT;
- } else if (parts & WLR_DECO_PART_RIGHT_BORDER) {
+ } else if (parts & ROOTS_DECO_PART_RIGHT_BORDER) {
edges |= WLR_EDGE_RIGHT;
- } else if (parts & WLR_DECO_PART_BOTTOM_BORDER) {
+ } else if (parts & ROOTS_DECO_PART_BOTTOM_BORDER) {
edges |= WLR_EDGE_BOTTOM;
- } else if (parts & WLR_DECO_PART_TOP_BORDER) {
+ } else if (parts & ROOTS_DECO_PART_TOP_BORDER) {
edges |= WLR_EDGE_TOP;
}
@@ -90,8 +90,8 @@ static void seat_view_deco_button(struct roots_seat_view *view, double sx,
view->has_button_grab = false;
}
- enum wlr_deco_part parts = view_get_deco_part(view->view, sx, sy);
- if (state == WLR_BUTTON_RELEASED && (parts & WLR_DECO_PART_TITLEBAR)) {
+ enum roots_deco_part parts = view_get_deco_part(view->view, sx, sy);
+ if (state == WLR_BUTTON_RELEASED && (parts & ROOTS_DECO_PART_TITLEBAR)) {
struct roots_cursor *cursor = view->seat->cursor;
wlr_xcursor_manager_set_cursor_image(cursor->xcursor_manager,
cursor->default_xcursor, cursor->cursor);