1
0
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:
kojima
2002-10-25 02:42:56 +00:00
parent 0bb76c0a76
commit ffa1a610c0
8 changed files with 1972 additions and 3 deletions

View File

@@ -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 */

View File

@@ -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);