--- rxvt-unicode/src/command.C 2011/01/27 17:37:19 1.473 +++ rxvt-unicode/src/command.C 2011/02/24 12:42:41 1.478 @@ -27,7 +27,7 @@ * Copyright (c) 2001 Marius Gedminas * - Ctrl/Mod4+Tab works like Meta+Tab (options) * Copyright (c) 2003 Rob McMullen - * Copyright (c) 2003-2007 Marc Lehmann + * Copyright (c) 2003-2011 Marc Lehmann * Copyright (c) 2007 Emanuele Giaquinta * * This program is free software; you can redistribute it and/or modify @@ -977,9 +977,9 @@ flush_ev.stop (); #ifdef HAVE_BG_PIXMAP - if (bg_flags & hasChanged) + if (bg_flags & BG_NEEDS_REFRESH) { - bg_flags &= ~hasChanged; + bg_flags &= ~BG_NEEDS_REFRESH; scr_touch (false); } #endif @@ -1160,10 +1160,7 @@ ssize_t n = cmdbuf_endp - cmdbuf_ptr; if (CBUFSIZ == n) - { - rxvt_warn ("PLEASE REPORT: pty_fill on full buffer, draining input, continuing.\n"); - n = 0; - } + n = 0; // normally this indicates a "too long" command sequence - just drop the data we have memmove (cmdbuf_base, cmdbuf_ptr, n); cmdbuf_ptr = cmdbuf_base; @@ -1466,7 +1463,7 @@ get_window_origin (x, y); if (bg_set_position (x, y) - || !(bg_flags & isValid)) + || !(bg_flags & BG_IS_VALID)) moved = true; } #endif @@ -1494,22 +1491,13 @@ break; case PropertyNotify: - if (!HOOK_INVOKE ((this, HOOK_PROPERTY_NOTIFY, DT_XEVENT, &ev, DT_END))) - if (ev.xproperty.atom == xa[XA_VT_SELECTION] - && ev.xproperty.state == PropertyNewValue) - selection_property (ev.xproperty.window, ev.xproperty.atom); - + HOOK_INVOKE ((this, HOOK_PROPERTY_NOTIFY, DT_XEVENT, &ev, DT_END)); break; case SelectionClear: selection_clear (ev.xselectionclear.selection == xa[XA_CLIPBOARD]); break; - case SelectionNotify: - if (selection_wait == Sel_normal) - selection_paste (ev.xselection.requestor, ev.xselection.property, true); - break; - case SelectionRequest: selection_send (ev.xselectionrequest); break; @@ -1528,7 +1516,7 @@ * We should render background PRIOR to drawing any text, but AFTER all * of ConfigureNotifys for the best results. */ - if (!(bg_flags & isValid)) + if (!(bg_flags & BG_IS_VALID)) update_background_ev.start (0.025); #endif mapped = 1; @@ -1553,7 +1541,7 @@ do { scr_expose (ev.xexpose.x, ev.xexpose.y, - ev.xexpose.width, ev.xexpose.height, False); + ev.xexpose.width, ev.xexpose.height, false); } while (XCheckTypedWindowEvent (dpy, vt, ev.xany.type, &ev)); @@ -1562,7 +1550,7 @@ while (XCheckTypedWindowEvent (dpy, vt, ev.xany.type, &ev)) { scr_expose (ev.xexpose.x, ev.xexpose.y, - ev.xexpose.width, ev.xexpose.height, False); + ev.xexpose.width, ev.xexpose.height, false); } want_refresh = 1;