patch (997B)
1 === modified file 'add_window.c' 2 --- old/add_window.c 2023-01-28 01:02:55 +0000 3 +++ new/add_window.c 2024-03-22 17:55:58 +0000 4 @@ -114,6 +114,7 @@ 5 { 6 TwmWindow *tmp_win; /* new twm window structure */ 7 bool ask_user; /* don't know where to put the window */ 8 + bool always_ask_user = true; /* optionally always ask user where to put window */ 9 int gravx, gravy; /* gravity signs for positioning */ 10 int namelen; 11 int bw2; 12 @@ -775,10 +776,10 @@ 13 * functions, for extra readability... 14 */ 15 if(HandlingEvents && ask_user && !restoredFromPrevSession) { 16 - if((Scr->RandomPlacement == RP_ALL) || 17 + if(!always_ask_user && ((Scr->RandomPlacement == RP_ALL) || 18 ((Scr->RandomPlacement == RP_UNMAPPED) && 19 ((tmp_win->wmhints->initial_state == IconicState) || 20 - (! visible(tmp_win))))) { 21 + (! visible(tmp_win)))))) { 22 /* just stick it somewhere */ 23 24 #ifdef DEBUG 25