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.42 by pcg, Thu Feb 12 01:42:03 2004 UTC

753 IMSendSpot (); 753 IMSendSpot ();
754#endif 754#endif
755 755
756 } 756 }
757 757
758 XFlush (display->display); 758 display->flush ();
759} 759}
760 760
761void 761void
762rxvt_term::check_cb (check_watcher &w) 762rxvt_term::check_cb (check_watcher &w)
763{ 763{
1360 1360
1361 } 1361 }
1362 break; 1362 break;
1363 1363
1364 case SelectionClear: 1364 case SelectionClear:
1365 selection_clear (); 1365 display->set_selection_owner (0);
1366 break; 1366 break;
1367 1367
1368 case SelectionNotify: 1368 case SelectionNotify:
1369 if (selection_wait == Sel_normal) 1369 if (selection_wait == Sel_normal)
1370 selection_paste (ev.xselection.requestor, 1370 selection_paste (ev.xselection.requestor,
1385 case MapNotify: 1385 case MapNotify:
1386 TermWin.mapped = 1; 1386 TermWin.mapped = 1;
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;
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; 1390 break;
1397 1391
1398#ifdef TRANSPARENT 1392#ifdef TRANSPARENT
1399 case ReparentNotify: 1393 case ReparentNotify:
1400 rootwin_cb (ev); 1394 rootwin_cb (ev);
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