]> git.mdlowis.com Git - proto/labwc.git/commit
view: add view_array_append()
authorJohan Malm <jgm323@gmail.com>
Thu, 10 Aug 2023 14:46:00 +0000 (15:46 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 20 Aug 2023 08:56:49 +0000 (09:56 +0100)
commit57b9efeb45091c47ae4ec0918306fe622c99aad8
treea914320dd9825bec4e8a5e6c62ab02f58d4259ae
parent58b33fb0c9a36aa393c657a180516cd8957f079d
view: add view_array_append()

...to reduce code duplication.

The function populates an array with views which meet any set of critera
from:

  - current-workspace
  - no-always-on-top
  - no-skipWindowSwitcher (window-rule)

Make src/osd.c use this new interface. Note that always-on-top views are
still filtered out from the window-switcher and that desktop_cycle_view()
needs to be re-worked before always-on-top views can be opted in.
include/view.h
src/desktop.c
src/osd.c
src/view.c