Functions

src/container.c File Reference

#include "data.h"
#include "log.h"
Include dependency graph for container.c:

Go to the source code of this file.

Functions

int container_mode (Container *con, bool for_frame)
 Returns the mode of the given container (or MODE_DEFAULT if a NULL pointer was passed in order to save a few explicit checks in other places).

Function Documentation

int container_mode ( Container con,
bool  for_frame 
)

Returns the mode of the given container (or MODE_DEFAULT if a NULL pointer was passed in order to save a few explicit checks in other places).

If for_frame was set to true, the special case of having exactly one client in a container is handled so that MODE_DEFAULT is returned. For some parts of the rendering, this is interesting, other parts need the real mode.

Definition at line 23 of file container.c.

References CIRCLEQ_FOREACH, DLOG, and Container::mode.

Referenced by decorate_window(), handle_expose_event(), handle_windowname_change(), and resize_client().