… | |
… | |
1844 | |
1844 | |
1845 | if (SHOULD_INVOKE (HOOK_ROOT_EVENT) |
1845 | if (SHOULD_INVOKE (HOOK_ROOT_EVENT) |
1846 | && HOOK_INVOKE ((this, HOOK_ROOT_EVENT, DT_XEVENT, &ev, DT_END))) |
1846 | && HOOK_INVOKE ((this, HOOK_ROOT_EVENT, DT_XEVENT, &ev, DT_END))) |
1847 | return; |
1847 | return; |
1848 | |
1848 | |
1849 | # if ENABLE_TRANSPARENCY |
|
|
1850 | switch (ev.type) |
1849 | switch (ev.type) |
1851 | { |
1850 | { |
1852 | case PropertyNotify: |
1851 | case PropertyNotify: |
1853 | /* |
1852 | /* |
1854 | * if user used some Esetroot compatible prog to set the root bg, |
1853 | * if user used some Esetroot compatible prog to set the root bg, |
1855 | * use the property to determine the pixmap. We use it later on. |
1854 | * use the property to determine the pixmap. We use it later on. |
1856 | */ |
1855 | */ |
1857 | if (ev.xproperty.atom == xa[XA_XROOTPMAP_ID] |
1856 | if (ev.xproperty.atom == xa[XA_XROOTPMAP_ID] |
1858 | || ev.xproperty.atom == xa[XA_ESETROOT_PMAP_ID]) |
1857 | || ev.xproperty.atom == xa[XA_ESETROOT_PMAP_ID]) |
1859 | { |
1858 | { |
|
|
1859 | # if ENABLE_TRANSPARENCY |
1860 | bg_set_root_pixmap (); |
1860 | bg_set_root_pixmap (); |
1861 | update_background (); |
1861 | update_background (); |
|
|
1862 | #endif |
|
|
1863 | #if ENABLE_PERL |
|
|
1864 | HOOK_INVOKE ((this, HOOK_ROOTPMAP_CHANGE, DT_END)); |
|
|
1865 | #endif |
1862 | } |
1866 | } |
1863 | |
1867 | |
1864 | break; |
1868 | break; |
1865 | } |
1869 | } |
1866 | # endif |
|
|
1867 | |
1870 | |
1868 | refresh_check (); |
1871 | refresh_check (); |
1869 | } |
1872 | } |
1870 | #endif |
1873 | #endif |
1871 | |
1874 | |