mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
deco.c: simplify initialization
This commit is contained in:
parent
d5108e291f
commit
22654d5191
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ deco_max_extents(struct view *view)
|
||||||
struct wlr_box
|
struct wlr_box
|
||||||
deco_box(struct view *view, enum deco_part deco_part)
|
deco_box(struct view *view, enum deco_part deco_part)
|
||||||
{
|
{
|
||||||
struct wlr_box box = { .x = 0, .y = 0, .width = 0, .height = 0 };
|
struct wlr_box box = { 0 };
|
||||||
assert(view);
|
assert(view);
|
||||||
switch (deco_part) {
|
switch (deco_part) {
|
||||||
case LAB_DECO_BUTTON_CLOSE:
|
case LAB_DECO_BUTTON_CLOSE:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue