mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 05:18:06 +01:00
- Fixed crashing bug when name and class were empty for a docked app.
- Removed MIN() and MAX() macros and replaced them with WMIN() and WMAX() from WINGs. - Added a hint that Window Maker crashed, to allow windows to be placed in their correct previous positions after a crash situation and also to preserve their state before the crash (minimized, shaded, hidden, ...)
This commit is contained in:
@@ -144,9 +144,6 @@ static Shortcut *shortcutList = NULL;
|
||||
*
|
||||
*/
|
||||
|
||||
#define MAX(a,b) ((a)>(b) ? (a) : (b))
|
||||
|
||||
|
||||
#define M_QUICK 1
|
||||
|
||||
/* menu commands */
|
||||
@@ -1610,7 +1607,7 @@ configureMenu(WScreen *scr, proplist_t definition)
|
||||
|
||||
menu = readMenuFile(scr, path);
|
||||
if (menu)
|
||||
menu->timestamp = MAX(stat_buf.st_mtime, WDRootMenu->timestamp);
|
||||
menu->timestamp = WMAX(stat_buf.st_mtime, WDRootMenu->timestamp);
|
||||
} else {
|
||||
menu = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user