mirror of
https://github.com/labwc/labwc.git
synced 2026-02-22 01:40:25 -05:00
Basic support for Move action
- Add Move as a default mouse binding for a Titlebar Press action
- Remove the hard-coded handling in cursor_button()
Example config snippet:
<mouse>
<context name="Titlebar">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Move"/>
</mousebind>
</context>
</mouse>
This commit is contained in:
parent
687993370f
commit
c01d1f124c
5 changed files with 20 additions and 8 deletions
|
|
@ -342,3 +342,14 @@ desktop_surface_and_view_at(struct server *server, double lx, double ly,
|
|||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct view *
|
||||
desktop_view_at_cursor(struct server *server) {
|
||||
double sx, sy;
|
||||
struct wlr_surface *surface;
|
||||
int view_area = LAB_SSD_NONE;
|
||||
|
||||
return desktop_surface_and_view_at(server,
|
||||
server->seat.cursor->x, server->seat.cursor->y,
|
||||
&surface, &sx, &sy, &view_area);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue