… | |
… | |
1492 | #endif |
1492 | #endif |
1493 | } |
1493 | } |
1494 | break; |
1494 | break; |
1495 | |
1495 | |
1496 | case PropertyNotify: |
1496 | case PropertyNotify: |
|
|
1497 | if (!HOOK_INVOKE ((this, HOOK_PROPERTY_NOTIFY, DT_XEVENT, &ev, DT_END))) |
1497 | if (ev.xproperty.atom == xa[XA_VT_SELECTION] |
1498 | if (ev.xproperty.atom == xa[XA_VT_SELECTION] |
1498 | && ev.xproperty.state == PropertyNewValue) |
1499 | && ev.xproperty.state == PropertyNewValue) |
1499 | selection_property (ev.xproperty.window, ev.xproperty.atom); |
1500 | selection_property (ev.xproperty.window, ev.xproperty.atom); |
1500 | |
1501 | |
1501 | break; |
1502 | break; |
1502 | |
1503 | |
1503 | case SelectionClear: |
1504 | case SelectionClear: |
1504 | selection_clear (); |
1505 | selection_clear (); |
… | |
… | |
2628 | am_transparent = 0; |
2629 | am_transparent = 0; |
2629 | /* XXX: also turn off Opt_transparent? */ |
2630 | /* XXX: also turn off Opt_transparent? */ |
2630 | } |
2631 | } |
2631 | else |
2632 | else |
2632 | { |
2633 | { |
2633 | #if WAIT_FOR_WM |
|
|
2634 | /* wait (an arbitrary period) for the WM to do its thing |
|
|
2635 | * needed for fvwm2.2.2 (and before?) */ |
|
|
2636 | sleep (1); |
|
|
2637 | #endif |
|
|
2638 | for (n = 0; n < (unsigned int)i; n++) |
2634 | for (n = 0; n < (unsigned int)i; n++) |
2639 | { |
2635 | { |
2640 | XSetWindowBackgroundPixmap (disp, parent[n], ParentRelative); |
2636 | XSetWindowBackgroundPixmap (disp, parent[n], ParentRelative); |
2641 | XClearWindow (disp, parent[n]); |
2637 | XClearWindow (disp, parent[n]); |
2642 | } |
2638 | } |