mirror of
https://github.com/swaywm/sway.git
synced 2025-11-24 06:59:51 -05:00
Implement borders
The borders are implemented as a surface/buffer attached to each view which is sent to and rendered by wlc in the view_pre_render callback. All the drawing logic is handled in sway/border.c and all the logic for calculating the geometry of the border/view is handled in `update_geometry` in sway/layout.c (same place as gaps are calculated).
This commit is contained in:
parent
3b05f92f76
commit
5a13cb0ed1
12 changed files with 386 additions and 149 deletions
|
|
@ -26,7 +26,7 @@ add_executable(sway
|
|||
output.c
|
||||
resize.c
|
||||
workspace.c
|
||||
render.c
|
||||
border.c
|
||||
)
|
||||
|
||||
add_definitions(
|
||||
|
|
@ -36,6 +36,7 @@ add_definitions(
|
|||
target_link_libraries(sway
|
||||
sway-common
|
||||
sway-protocols
|
||||
sway-wayland
|
||||
${WLC_LIBRARIES}
|
||||
${XKBCOMMON_LIBRARIES}
|
||||
${PCRE_LIBRARIES}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue