Changeset 4049 for neercs/trunk
- Timestamp:
- Nov 27, 2009, 11:55:14 AM (12 years ago)
- Location:
- neercs/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/TODO
r3958 r4049 1 1 - Add some options 2 2 * Autolock after n seconds of screensaver 3 - Handle multiple clients on the same server to mimic screen 3 4 - Improve performance -
neercs/trunk/XCode/XCode.xcodeproj/project.pbxproj
r4048 r4049 74 74 E6DB675110B2AAE300B6F924 /* config.h */, 75 75 E6DB672410B19E2200B6F924 /* neercs.h */, 76 E6BC2FBF10BEE46A00CED875 /* widgets.h */, 76 77 E6DB672110B19E2200B6F924 /* mygetopt.h */, 77 78 E6DB672310B19E2200B6F924 /* mytrace.h */, … … 94 95 E6A767B510B44014008B6DEC /* client.c */, 95 96 E6A76A3D10B97B65008B6DEC /* help.c */, 97 E6BC2FC010BEE46A00CED875 /* widgets.c */, 96 98 E6DB672510B19E2200B6F924 /* neercsrc */, 97 99 E6DB671F10B19E2200B6F924 /* Makefile.am */, 98 E6BC2FBF10BEE46A00CED875 /* widgets.h */,99 E6BC2FC010BEE46A00CED875 /* widgets.c */,100 100 ); 101 101 name = src; -
neercs/trunk/src/server.c
r4038 r4049 323 323 long long int tdiff = 324 324 (current_time - screen_list->last_refresh_time) / 1000; 325 326 325 327 326 if (screen_list->force_refresh) 328 327 { 329 328 wm_refresh(screen_list); 329 refresh = 1; 330 330 } 331 331 … … 358 358 if (tdiff >= screen_list->delay) 359 359 { 360 screen_list->was_in_bell = screen_list->in_bell;361 360 refresh_screens(screen_list); 362 361 set_title(screen_list); -
neercs/trunk/src/term.c
r4020 r4049 146 146 { 147 147 if (!sc->bell) 148 screen_list->in_bell ++;148 screen_list->in_bell=10; 149 149 sc->bell = 1; 150 150 } -
neercs/trunk/src/wm.c
r4021 r4049 203 203 { 204 204 caca_set_color_ansi(screen_list->cv, CACA_RED, CACA_BLACK); 205 screen_list->screen[screen_list->pty]->bell = 0;206 205 screen_list->in_bell--; 206 screen_list->force_refresh = 1; 207 if (!screen_list->in_bell) 208 { 209 screen_list->was_in_bell = 1; 210 screen_list->screen[screen_list->pty]->bell = 0; 211 } 207 212 } 208 213 else 209 214 { 215 if (screen_list->was_in_bell) 216 { 217 screen_list->screen[screen_list->pty]->bell = 0; 218 screen_list->force_refresh = 1; 219 screen_list->was_in_bell = 0; 220 screen_list->changed = 1; 221 } 210 222 caca_set_color_ansi(screen_list->cv, CACA_LIGHTGREEN, CACA_BLACK); 211 223 } … … 214 226 static void wm_box(struct screen_list *screen_list, int pty) 215 227 { 216 if (!screen_list->screen[pty]->changed 217 && !screen_list->changed) 228 if (!screen_list->screen[pty]->changed && !screen_list->changed) 218 229 return; 219 230 … … 221 232 return; 222 233 234 /* Color determined by wm_bell() */ 223 235 caca_draw_cp437_box(screen_list->cv, 224 236 screen_list->screen[pty]->x - 1, … … 396 408 { 397 409 wm_refresh_full(screen_list); 398 screen_list->force_refresh = 0;410 // screen_list->force_refresh = 0; 399 411 } 400 412 else
Note: See TracChangeset
for help on using the changeset viewer.