mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 05:18:06 +01:00
- Fixed problem with long, preset workspace names (Wanderlei Antonio Cavassin
<cavassin@conectiva.com.br>) - Added kinput2 bug workaround to stock WMWindowAttributes (Seiichi SATO <sato@cvs-net.co.jp>) - Added Belarusian translation (Ihar Viarheichyk <iverg@mail.ru>) - Fixed wrlib to not try to load braindead images with 0x0 size
This commit is contained in:
@@ -483,7 +483,7 @@
|
||||
|
||||
#define HRESIZE_THRESHOLD 3
|
||||
|
||||
#define MAX_WORKSPACENAME_WIDTH 16
|
||||
#define MAX_WORKSPACENAME_WIDTH 32
|
||||
#define MAX_WINDOWLIST_WIDTH 160 /* max width of window title in
|
||||
* window list */
|
||||
|
||||
|
||||
@@ -240,11 +240,13 @@ updateWorkspaceMenu(WMenu *menu)
|
||||
if (strcmp(menu->entries[i]->text,scr->workspaces[i]->name)!=0) {
|
||||
wfree(menu->entries[i]->text);
|
||||
strncpy(title, scr->workspaces[i]->name, MAX_WORKSPACENAME_WIDTH);
|
||||
title[MAX_WORKSPACENAME_WIDTH] = 0;
|
||||
menu->entries[i]->text = wstrdup(title);
|
||||
menu->flags.realized = 0;
|
||||
}
|
||||
} else {
|
||||
strncpy(title, scr->workspaces[i]->name, MAX_WORKSPACENAME_WIDTH);
|
||||
title[MAX_WORKSPACENAME_WIDTH] = 0;
|
||||
|
||||
wMenuAddCallback(menu, title, switchWSCommand, NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user