mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
Added runtime option that lets one to set a small border around the
workspace that will not be covered by windows when maximizing, and thus allowing easy access to the clip or menus using the mouse in this border area, even when the screen is covered by windows maximized in both horizontal and vertical directions. A make clean is needed in src/ because new members were added to the WPreferences structure in WindowMaker.h
This commit is contained in:
@@ -319,7 +319,16 @@ static WOptionEnumeration seDisplayPositions[] = {
|
||||
{"topleft", WD_TOPLEFT, 0},
|
||||
{"topright", WD_TOPRIGHT, 0},
|
||||
{"bottomleft", WD_BOTTOMLEFT, 0},
|
||||
{"bottomright", WD_BOTTOMRIGHT, 0}
|
||||
{"bottomright", WD_BOTTOMRIGHT, 0},
|
||||
{NULL, 0, 0}
|
||||
};
|
||||
|
||||
static WOptionEnumeration seWorkspaceBorder[] = {
|
||||
{"None", WB_NONE, 0},
|
||||
{"LeftRight", WB_LEFTRIGHT, 0},
|
||||
{"TopBottom", WB_TOPBOTTOM, 0},
|
||||
{"AllDirections", WB_ALLDIRS, 0},
|
||||
{NULL, 0, 0}
|
||||
};
|
||||
|
||||
|
||||
@@ -423,6 +432,12 @@ WDefaultEntry optionList[] = {
|
||||
{"WorkspaceNameDisplayPosition", "center", seDisplayPositions,
|
||||
&wPreferences.workspace_name_display_position, getEnum, NULL
|
||||
},
|
||||
{"WorkspaceBorder", "None", seWorkspaceBorder,
|
||||
&wPreferences.workspace_border_position, getEnum, updateUsableArea
|
||||
},
|
||||
{"WorkspaceBorderSize", "0", NULL,
|
||||
&wPreferences.workspace_border_size, getInt, updateUsableArea
|
||||
},
|
||||
#ifdef VIRTUAL_DESKTOP
|
||||
{"VirtualEdgeThickness", "1", NULL,
|
||||
&wPreferences.vedge_thickness, getInt, NULL
|
||||
@@ -2597,7 +2612,8 @@ static WCursorLookup cursor_table[] =
|
||||
{ NULL, CURSOR_ID_NONE }
|
||||
};
|
||||
|
||||
static void check_bitmap_status(int status, char *filename, Pixmap bitmap)
|
||||
static void
|
||||
check_bitmap_status(int status, char *filename, Pixmap bitmap)
|
||||
{
|
||||
switch(status) {
|
||||
case BitmapOpenFailed:
|
||||
@@ -2620,7 +2636,8 @@ static void check_bitmap_status(int status, char *filename, Pixmap bitmap)
|
||||
* (builtin, <cursor_name>)
|
||||
* (bitmap, <cursor_bitmap>, <cursor_mask>)
|
||||
*/
|
||||
static int parse_cursor(WScreen *scr, proplist_t pl, Cursor *cursor)
|
||||
static int
|
||||
parse_cursor(WScreen *scr, proplist_t pl, Cursor *cursor)
|
||||
{
|
||||
proplist_t elem;
|
||||
char *val;
|
||||
|
||||
Reference in New Issue
Block a user