mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
src/view.c: view_is_floating() add missing tiled_region_evacuate
Also - remove static inline (e.g. trust the compiler to optimize) - move from include/view.h to src/view.c
This commit is contained in:
parent
a90adab948
commit
aeb6aa0cd8
2 changed files with 10 additions and 11 deletions
13
src/view.c
13
src/view.c
|
|
@ -546,10 +546,15 @@ view_restore_to(struct view *view, struct wlr_box geometry)
|
|||
bool
|
||||
view_is_tiled(struct view *view)
|
||||
{
|
||||
if (!view) {
|
||||
return false;
|
||||
}
|
||||
return view->tiled || view->tiled_region || view->tiled_region_evacuate;
|
||||
return view && (view->tiled || view->tiled_region
|
||||
|| view->tiled_region_evacuate);
|
||||
}
|
||||
|
||||
bool
|
||||
view_is_floating(struct view *view)
|
||||
{
|
||||
return view && !(view->fullscreen || view->maximized || view->tiled
|
||||
|| view->tiled_region || view->tiled_region_evacuate);
|
||||
}
|
||||
|
||||
/* Reset tiled state of view without changing geometry */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue