]> git.mdlowis.com Git - proto/labwc.git/commitdiff
view.h: changed the type of tiled in struct view to enum view_edge
authorTomi Ollila <tomi.ollila@iki.fi>
Tue, 31 Oct 2023 20:12:12 +0000 (22:12 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 31 Oct 2023 21:58:20 +0000 (21:58 +0000)
The type enum view_edge used to be defined in a .c file, so a
structure member 'tiled' in struct view had to be defined to
use another type.

Later (2023-08-02, commit 1ee8715) the definition of enum view_edge
was moved to view.h, so now 'tiled' can be defined to use that type.

include/view.h

index b2d8ce317d6e081f1c8818ef03376790cccba967..344907a08eb59086ad26781e543d7c081c4c2ab9 100644 (file)
@@ -141,7 +141,7 @@ struct view {
        bool minimized;
        enum view_axis maximized;
        bool fullscreen;
-       uint32_t tiled;  /* private, enum view_edge in src/view.c */
+       enum view_edge tiled;
        bool inhibits_keybinds;
 
        /* Pointer to an output owned struct region, may be NULL */