Skip to content

Commit

Permalink
Merge pull request #52 from milgra/dev
Browse files Browse the repository at this point in the history
v0.94
  • Loading branch information
milgra authored Dec 12, 2023
2 parents 5beff04 + 2acaa3c commit d00af13
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,5 @@ MIT, see [LICENSE](/LICENSE).
## TODO/BUGS ##
dynamically update when new monitor plugged in/out
auto tests with 2x scaling
dynamically update when new monitor plugged in/out
auto tests with 2x scaling
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'sov',
'c',
version: '0.93',
version: '0.94',
license: 'MIT',
default_options: ['c_std=gnu99',
'warning_level=3']
Expand Down
12 changes: 10 additions & 2 deletions src/sov/sov.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ void draw_window(wl_window_t* info)
rows,
sov.ratio);

ku_bitmap_reset(&info->bitmap);

gen_render(
info->monitor->logical_width / sov.ratio,
info->monitor->logical_height / sov.ratio,
Expand Down Expand Up @@ -294,8 +296,14 @@ void update(ku_event_t ev)
system(command);
REL(command);

delete_layers();
create_layers();
mt_vector_reset(sov.workspaces);
sov_read_tree(sov.workspaces);

for (size_t w = 0; w < sov.wlwindows->length; w++)
{
wl_window_t* info = sov.wlwindows->data[w];
draw_window(info);
}
}
}

Expand Down

0 comments on commit d00af13

Please sign in to comment.