mirror of
https://github.com/labwc/labwc.git
synced 2026-02-15 04:27:53 -05:00
overlay: take into account <core><gap> for edge overlay
This also deduplicates get_edge_snap_box() in interactive.c and view_get_edge_snap_box() in view.c.
This commit is contained in:
parent
ca8d98e80f
commit
38e57891b5
5 changed files with 23 additions and 35 deletions
|
|
@ -429,7 +429,6 @@ void interactive_anchor_to_cursor(struct server *server, struct wlr_box *geo);
|
|||
void interactive_begin(struct view *view, enum input_mode mode, uint32_t edges);
|
||||
void interactive_finish(struct view *view);
|
||||
void interactive_cancel(struct view *view);
|
||||
/* Possibly returns VIEW_EDGE_CENTER if <topMaximize> is yes */
|
||||
enum view_edge edge_from_cursor(struct seat *seat, struct output **dest_output);
|
||||
|
||||
void handle_tearing_new_object(struct wl_listener *listener, void *data);
|
||||
|
|
|
|||
|
|
@ -501,6 +501,10 @@ bool view_contains_window_type(struct view *view, enum window_type window_type);
|
|||
*/
|
||||
enum view_edge view_edge_invert(enum view_edge edge);
|
||||
|
||||
/* If view is NULL, the size of SSD is not considered */
|
||||
struct wlr_box view_get_edge_snap_box(struct view *view, struct output *output,
|
||||
enum view_edge edge);
|
||||
|
||||
/**
|
||||
* view_is_focusable() - Check whether or not a view can be focused
|
||||
* @view: view to be checked
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue