labwc/include/common
tokyo4j 46ec513630 view: implement cascade placement policy
Adds following settings:
<placement>
  <policy>cascade</policy>
  <cascadeOffset x="40" y="30" />
</placement>

"Cascade" policy places a new window at the center of the screen like
"center" policy, but possibly shifts its position to bottom-right so the
new window doesn't cover existing windows.

The algorithm is copied from KWin's implementation:
df9f8f8346/src/placement.cpp (L589)

Also added some helper functions to manipulate `wlr_box`.
2024-07-20 08:59:46 +01:00
..
array.h common/array.h: add wl_array_for_each_reverse macro 2023-11-21 22:31:05 +01:00
border.h Move border-struct to common/border.h for sharing 2023-06-26 06:04:07 +01:00
box.h view: implement cascade placement policy 2024-07-20 08:59:46 +01:00
buf.h common/buf: rename buf->buf to buf->data 2024-04-18 07:00:23 +01:00
dir.h config: support merging multiple config files 2024-01-18 20:20:36 +00:00
fd-util.h Replace _ with - in source file names 2024-05-22 07:10:51 +01:00
file-helpers.h common/file-helpers.c: share file_exists() to reduce duplication 2023-09-17 19:26:41 +01:00
font.h common: render text buffers with opaque background 2024-03-17 19:09:53 +00:00
grab-file.h common: remove buf_init(), add BUF_INIT and buf_move() 2024-04-18 07:00:23 +01:00
graphic-helpers.h common: render text buffers with opaque background 2024-03-17 19:09:53 +00:00
list.h includes: identifier consistency in include guards 2023-05-13 22:29:21 +01:00
macros.h edges, resistance, snap: unified resistance and snapping engine 2024-01-30 15:02:17 -05:00
match.h common: use fnmatch() for pattern matching 2023-10-01 14:17:29 +01:00
mem.h includes: identifier consistency in include guards 2023-05-13 22:29:21 +01:00
nodename.h includes: identifier consistency in include guards 2023-05-13 22:29:21 +01:00
parse-bool.h includes: identifier consistency in include guards 2023-05-13 22:29:21 +01:00
parse-double.h common: validate and properly parse floats 2024-04-02 10:37:50 -04:00
scaled-font-buffer.h Replace _ with - in source file names 2024-05-22 07:10:51 +01:00
scaled-scene-buffer.h Replace _ with - in source file names 2024-05-22 07:10:51 +01:00
scene-helpers.h magnifier: fix flickering on simultaneous gamma changes 2024-06-29 23:36:41 +02:00
spawn.h Add -S|--session <command> option 2024-04-14 13:05:25 +02:00
string-helpers.h session: process environment.d and allow empty variables 2024-03-11 20:01:14 +00:00
surface-helpers.h cursor: process layer subsurfaces in cursor_button_press() 2024-03-09 00:44:19 +01:00