comparison os2/dw.c @ 1357:46c3bcd25b53

Convert WM_ACTIVATE to WM_SETFOCUS for top-level windows on OS/2. When the user selects a window we get WM_ACTIVATE not WM_SETFOCUS as I expected.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 18 Nov 2011 14:56:25 +0000
parents 1f22addc2722
children 2f5e54b0c5c4
comparison
equal deleted inserted replaced
1356:88a3cfa800a4 1357:46c3bcd25b53
3134 if(!command_active) 3134 if(!command_active)
3135 { 3135 {
3136 /* Make sure we don't end up in infinite recursion */ 3136 /* Make sure we don't end up in infinite recursion */
3137 command_active = 1; 3137 command_active = 1;
3138 3138
3139 result = (int)_run_event(hWnd, msg, mp1, mp2); 3139 if(msg == WM_ACTIVATE)
3140 result = (int)_run_event(mp2, WM_SETFOCUS, 0, mp1);
3141 else
3142 result = (int)_run_event(hWnd, msg, mp1, mp2);
3140 3143
3141 command_active = 0; 3144 command_active = 0;
3142 } 3145 }
3143 3146
3144 /* Now that any handlers are done... do normal processing */ 3147 /* Now that any handlers are done... do normal processing */