Allow the window manager to handle centered, fit and fill backdrops
This commit is contained in:
committed by
Jon Trulson
parent
8e09e4be73
commit
1f5ec7f034
@@ -52,10 +52,19 @@ extern "C" {
|
||||
#define DtWSM_REASON_CURRENT 4
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Types
|
||||
*/
|
||||
|
||||
/* Which style is the workspace background image */
|
||||
typedef enum {
|
||||
DtWSM_BACKDROP_IMAGETYPE_TILED = 0,
|
||||
DtWSM_BACKDROP_IMAGETYPE_CENTER = 1,
|
||||
DtWSM_BACKDROP_IMAGETYPE_FIT = 2,
|
||||
DtWSM_BACKDROP_IMAGETYPE_FILL = 3
|
||||
} DtWsmBackdropImageType;
|
||||
|
||||
/* Workspace property information */
|
||||
|
||||
typedef struct _DtWsmWorkspaceInfo {
|
||||
@@ -67,6 +76,7 @@ typedef struct _DtWsmWorkspaceInfo {
|
||||
char *pchTitle;
|
||||
Window *backdropWindows;
|
||||
int numBackdropWindows;
|
||||
DtWsmBackdropImageType imageType; /**< Tiled, Center, Fit, Fill */
|
||||
} DtWsmWorkspaceInfo;
|
||||
|
||||
|
||||
|
||||
@@ -447,7 +447,7 @@ _DtWmRestart(
|
||||
|
||||
/*************************************<->*************************************
|
||||
*
|
||||
* int _DtWsmChangeBackdrop (display, root, path, pixmap)
|
||||
* int _DtWsmChangeBackdrop (display, root, path, pixmap, imageType)
|
||||
*
|
||||
*
|
||||
* Description:
|
||||
@@ -461,6 +461,7 @@ _DtWmRestart(
|
||||
* root - root window of screen
|
||||
* path - file path to bitmap file
|
||||
* pixmap - pixmap id of backdrop pixmap
|
||||
* imageType - Style of backdrop, tiled, center, fit or fill
|
||||
*
|
||||
* Returns:
|
||||
* --------
|
||||
@@ -472,7 +473,8 @@ _DtWsmChangeBackdrop (
|
||||
Display *display,
|
||||
Window root,
|
||||
char *path,
|
||||
Pixmap pixmap);
|
||||
Pixmap pixmap,
|
||||
DtWsmBackdropImageType imageType);
|
||||
|
||||
/*************************************<->*************************************
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user