ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/command.C
(Generate patch)

Comparing rxvt-unicode/src/command.C (file contents):
Revision 1.38 by pcg, Mon Feb 9 07:11:49 2004 UTC vs.
Revision 1.40 by pcg, Mon Feb 9 22:45:29 2004 UTC

1387#ifdef TEXT_BLINK 1387#ifdef TEXT_BLINK
1388 text_blink_ev.start (NOW + TEXT_BLINK_INTERVAL); 1388 text_blink_ev.start (NOW + TEXT_BLINK_INTERVAL);
1389#endif 1389#endif
1390 break; 1390 break;
1391 1391
1392 case PropertyNotify:
1393 if (ev.xproperty.atom == xa[XA_VT_SELECTION])
1394 if (ev.xproperty.state == PropertyNewValue)
1395 selection_property (ev.xproperty.window, ev.xproperty.atom);
1396 break;
1397
1398#ifdef TRANSPARENT 1392#ifdef TRANSPARENT
1399 case ReparentNotify: 1393 case ReparentNotify:
1400 rootwin_cb (ev); 1394 rootwin_cb (ev);
1401 break; 1395 break;
1402#endif /* TRANSPARENT */ 1396#endif /* TRANSPARENT */
1554rxvt_term::rootwin_cb (XEvent &ev) 1548rxvt_term::rootwin_cb (XEvent &ev)
1555{ 1549{
1556 SET_R (this); 1550 SET_R (this);
1557 SET_LOCALE (locale); 1551 SET_LOCALE (locale);
1558 1552
1559 if (ev.type == PropertyNotify) 1553 switch (ev.type)
1560 { 1554 {
1561 /* 1555 case PropertyNotify:
1556 if (ev.xproperty.atom == xa[XA_VT_SELECTION])
1557 {
1558 if (ev.xproperty.state == PropertyNewValue)
1559 selection_property (ev.xproperty.window, ev.xproperty.atom);
1560 break;
1561 }
1562#ifdef TRANSPARENT
1563 else
1564 {
1565 /*
1562 * if user used some Esetroot compatible prog to set the root bg, 1566 * if user used some Esetroot compatible prog to set the root bg,
1563 * use the property to determine the pixmap. We use it later on. 1567 * use the property to determine the pixmap. We use it later on.
1564 */ 1568 */
1565 if (xa[XA_XROOTPMAPID] == 0) 1569 if (xa[XA_XROOTPMAPID] == 0)
1566 xa[XA_XROOTPMAPID] = XInternAtom(display->display, "_XROOTPMAP_ID", False); 1570 xa[XA_XROOTPMAPID] = XInternAtom(display->display, "_XROOTPMAP_ID", False);
1567 1571
1568 if (ev.xproperty.atom != xa[XA_XROOTPMAPID]) 1572 if (ev.xproperty.atom != xa[XA_XROOTPMAPID])
1569 return; 1573 return;
1570 } 1574 }
1571 1575
1576 /* FALLTHROUGH */
1577 case ReparentNotify:
1572 if ((Options & Opt_transparent) && check_our_parents ()) 1578 if ((Options & Opt_transparent) && check_our_parents ())
1573 {
1574 if (am_transparent) 1579 if (am_transparent)
1575 want_full_refresh = 1; 1580 want_full_refresh = 1;
1581 break;
1582#endif
1576 } 1583 }
1577} 1584}
1578 1585
1579void 1586void
1580rxvt_term::button_press (const XButtonEvent &ev) 1587rxvt_term::button_press (const XButtonEvent &ev)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines