mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
Add --no-dock option
This commit is contained in:
parent
440d0bc22d
commit
a50e5ca9f0
3 changed files with 13 additions and 3 deletions
|
|
@ -264,8 +264,10 @@ void render_frame(struct swaynag *swaynag) {
|
|||
uint32_t height = render_to_cairo(cairo, swaynag);
|
||||
if (height != swaynag->height) {
|
||||
zwlr_layer_surface_v1_set_size(swaynag->layer_surface, 0, height);
|
||||
zwlr_layer_surface_v1_set_exclusive_zone(swaynag->layer_surface,
|
||||
height);
|
||||
if (!swaynag->no_dock) {
|
||||
zwlr_layer_surface_v1_set_exclusive_zone(swaynag->layer_surface,
|
||||
height);
|
||||
}
|
||||
wl_surface_commit(swaynag->surface);
|
||||
wl_display_roundtrip(swaynag->display);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue