File awful/placement.lua

Author:

Julien Danjou <julien@danjou.info>

Copyright ©2008 Julien Danjou

Release: v3.3.4

Functions

centered (c, p) Place the client centered with respect to a parent or the clients screen.
no_offscreen (c) Place the client without it being outside the screen.
no_overlap (c) Place the client where there's place available with minimum overlap.
under_mouse (c) Place the client under the mouse.


Functions

centered (c, p)
Place the client centered with respect to a parent or the clients screen.

Parameters

  • c: The client.
  • p: The parent (optional, nil for screen centering).

Return value:

The new client geometry.
no_offscreen (c)
Place the client without it being outside the screen.

Parameters

  • c: The client.

Return value:

The new client geometry.
no_overlap (c)
Place the client where there's place available with minimum overlap.

Parameters

  • c: The client.
under_mouse (c)
Place the client under the mouse.

Parameters

  • c: The client.

Return value:

The new client geometry.

Valid XHTML 1.0!