1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-31 19:12:32 +01:00

wmaker: add miniwindow apercu

This patch is adding miniwindow apercu when the mouse
is over the miniwindows.

To enable it you have to run WPref, in Miscellaneous Ergonomic
Preferences, check miniwindow apercus.
Then, you will be able to see a screenshot of the app when the mouse
is over the miniwindow.
This commit is contained in:
David Maciejak
2014-08-20 11:25:56 +07:00
committed by Carlos R. Mafra
parent b6d48420bb
commit c6c7652e24
8 changed files with 165 additions and 23 deletions

View File

@@ -29,6 +29,8 @@
#define TILE_CLIP 1
#define TILE_DRAWER 2
#define APERCU_BORDER 2
typedef struct WIcon {
WCoreWindow *core;
WWindow *owner; /* owner window */
@@ -48,6 +50,7 @@ typedef struct WIcon {
unsigned int highlighted:1;
Pixmap pixmap;
Pixmap apercu;
WMHandlerID handlerID; /* timer handler ID for cycling select
* color */
@@ -74,5 +77,6 @@ char *get_name_for_instance_class(const char *wm_instance, const char *wm_class)
void wIconSetHighlited(WIcon *icon, Bool flag);
void set_icon_image_from_image(WIcon *icon, RImage *image);
void set_icon_apercu(WIcon *icon, RImage *image);
#endif /* WMICON_H_ */