wmaker: add core workspace pager functions
commit41745d98d4bffac57787d6f9105d2c5819f73e79
authorDavid Maciejak <david.maciejak@gmail.com>
Thu, 4 Dec 2014 06:37:36 +0000 (4 13:37 +0700)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 10 Dec 2014 10:19:18 +0000 (10 10:19 +0000)
tree378de1f0f4fdf0a7ebf25630fa6e7245b6f9e076
parent519302223ceea9dd8eabb14d8e1dd3042b2dc66e
wmaker: add core workspace pager functions

This patch is adding the core code needed to run the workspace pager.

Currently when called, a new frame presenting mini workspace images
are displayed at the bottom of the screen above other windows.
When clicking on one of the miniatures, the workspace is switched and
the frame is closed.

Drawbacks: a screenshot of the workspace is used for the miniatures.
This screenshot is taken only when a workspace switched event occurs.

First, it means that the workspace switching process can be longer than
usual. Secondly, updated minitatures can only be available when the
workspace is "opened" (cause windows have to be mapped to be able to
be copied).

So when wmaker is (re)started or when for example a window is moved to
another workspace the corresponding miniature is NOT updated.
(I did not find a clean and easy way to do so, feel free to share if
you have some ideas)
src/Makefile.am
src/event.c
src/misc.c
src/workspace.c
src/workspace.h
src/wsmap.c [new file with mode: 0755]
src/wsmap.h [new file with mode: 0644]