… | |
… | |
996 | { |
996 | { |
997 | TermWin.mapped = 1; |
997 | TermWin.mapped = 1; |
998 | refresh_type = FAST_REFRESH; |
998 | refresh_type = FAST_REFRESH; |
999 | XClearWindow (disp, top); |
999 | XClearWindow (disp, top); |
1000 | // TODO: make XMapNotify-event-code a function and call it |
1000 | // TODO: make XMapNotify-event-code a function and call it |
1001 | // TODO: how can I detetc visibility without unmpa/map? |
1001 | // TODO: how can I detect visibility without unmap/map? |
1002 | // TODO: focusin etc. |
1002 | // TODO: focusin etc. |
1003 | } |
1003 | } |
1004 | #else |
1004 | #else |
1005 | // it'S easiets just to unmap/map to get all state correctly set-up |
1005 | // it's easiest just to unmap/map to get all state correctly set-up |
1006 | XUnmapWindow (disp, top); |
1006 | XUnmapWindow (disp, top); |
1007 | #endif |
1007 | #endif |
1008 | } |
1008 | } |
1009 | else |
1009 | else |
1010 | #endif |
1010 | #endif |
… | |
… | |
1103 | attributes.bit_gravity = NorthWestGravity; |
1103 | attributes.bit_gravity = NorthWestGravity; |
1104 | XChangeWindowAttributes (disp, TermWin.vt, CWBitGravity, &attributes); |
1104 | XChangeWindowAttributes (disp, TermWin.vt, CWBitGravity, &attributes); |
1105 | |
1105 | |
1106 | vt_emask = ExposureMask | ButtonPressMask | ButtonReleaseMask | PropertyChangeMask; |
1106 | vt_emask = ExposureMask | ButtonPressMask | ButtonReleaseMask | PropertyChangeMask; |
1107 | |
1107 | |
1108 | pointer_unblank (); |
|
|
1109 | |
|
|
1110 | #ifdef POINTER_BLANK |
1108 | #ifdef POINTER_BLANK |
1111 | if (options & Opt_pointerBlank) |
1109 | if (options & Opt_pointerBlank) |
1112 | vt_emask |= PointerMotionMask; |
1110 | vt_emask |= PointerMotionMask; |
1113 | else |
1111 | else |
1114 | #endif |
1112 | #endif |
… | |
… | |
1183 | // initially we are in unfocused state |
1181 | // initially we are in unfocused state |
1184 | if (rs[Rs_fade]) |
1182 | if (rs[Rs_fade]) |
1185 | pix_colors = pix_colors_unfocused; |
1183 | pix_colors = pix_colors_unfocused; |
1186 | #endif |
1184 | #endif |
1187 | |
1185 | |
|
|
1186 | pointer_unblank (); |
1188 | scr_recolour (); |
1187 | scr_recolour (); |
|
|
1188 | |
|
|
1189 | #if ENABLE_XEMBED |
|
|
1190 | // why this is necessary, I don't know, race condition?? |
|
|
1191 | XMoveWindow (disp, TermWin.vt, window_vt_x, window_vt_y); |
|
|
1192 | #endif |
1189 | } |
1193 | } |
1190 | |
1194 | |
1191 | /* ------------------------------------------------------------------------- * |
1195 | /* ------------------------------------------------------------------------- * |
1192 | * GET TTY CURRENT STATE * |
1196 | * GET TTY CURRENT STATE * |
1193 | * ------------------------------------------------------------------------- */ |
1197 | * ------------------------------------------------------------------------- */ |