… | |
… | |
10 | * Copyright (c) 1996 Chuck Blake <cblake@BBN.COM> |
10 | * Copyright (c) 1996 Chuck Blake <cblake@BBN.COM> |
11 | * Copyright (c) 1997 mj olesen <olesen@me.queensu.ca> |
11 | * Copyright (c) 1997 mj olesen <olesen@me.queensu.ca> |
12 | * Copyright (c) 1997,1998 Oezguer Kesim <kesim@math.fu-berlin.de> |
12 | * Copyright (c) 1997,1998 Oezguer Kesim <kesim@math.fu-berlin.de> |
13 | * Copyright (c) 1998-2001 Geoff Wing <gcw@pobox.com> |
13 | * Copyright (c) 1998-2001 Geoff Wing <gcw@pobox.com> |
14 | * - extensive modifications |
14 | * - extensive modifications |
15 | * Copyright (c) 2003-2008 Marc Lehmann <pcg@goof.com> |
15 | * Copyright (c) 2003-2008 Marc Lehmann <schmorp@schmorp.de> |
16 | * |
16 | * |
17 | * This program is free software; you can redistribute it and/or modify |
17 | * This program is free software; you can redistribute it and/or modify |
18 | * it under the terms of the GNU General Public License as published by |
18 | * it under the terms of the GNU General Public License as published by |
19 | * the Free Software Foundation; either version 2 of the License, or |
19 | * the Free Software Foundation; either version 2 of the License, or |
20 | * (at your option) any later version. |
20 | * (at your option) any later version. |
… | |
… | |
811 | |
811 | |
812 | if (option (Opt_scrollBar)) |
812 | if (option (Opt_scrollBar)) |
813 | scrollBar.resize (); /* create and map scrollbar */ |
813 | scrollBar.resize (); /* create and map scrollbar */ |
814 | #ifdef HAVE_BG_PIXMAP |
814 | #ifdef HAVE_BG_PIXMAP |
815 | { |
815 | { |
816 | bgPixmap.set_target (this); |
816 | bg_init (); |
817 | bgPixmap.invalidate (); |
|
|
818 | |
817 | |
819 | #ifdef ENABLE_TRANSPARENCY |
818 | #ifdef ENABLE_TRANSPARENCY |
820 | if (option (Opt_transparent)) |
819 | if (option (Opt_transparent)) |
821 | { |
820 | { |
822 | bgPixmap.set_transparent (); |
821 | bg_set_transparent (); |
823 | |
822 | |
824 | if (rs [Rs_blurradius]) |
823 | if (rs [Rs_blurradius]) |
825 | bgPixmap.set_blur_radius (rs [Rs_blurradius]); |
824 | bg_set_blur (rs [Rs_blurradius]); |
826 | |
825 | |
827 | if (ISSET_PIXCOLOR (Color_tint)) |
826 | if (ISSET_PIXCOLOR (Color_tint)) |
828 | bgPixmap.set_tint (pix_colors_focused [Color_tint]); |
827 | bg_set_tint (pix_colors_focused [Color_tint]); |
829 | |
828 | |
830 | if (rs [Rs_shade]) |
829 | if (rs [Rs_shade]) |
831 | bgPixmap.set_shade (rs [Rs_shade]); |
830 | bg_set_shade (rs [Rs_shade]); |
832 | |
831 | |
833 | bgPixmap.set_root_pixmap (); |
832 | bg_set_root_pixmap (); |
834 | XSelectInput (dpy, display->root, PropertyChangeMask); |
833 | XSelectInput (dpy, display->root, PropertyChangeMask); |
835 | rootwin_ev.start (display, display->root); |
834 | rootwin_ev.start (display, display->root); |
836 | } |
835 | } |
837 | #endif |
836 | #endif |
838 | |
837 | |
… | |
… | |
842 | const char *p = rs[Rs_backgroundPixmap]; |
841 | const char *p = rs[Rs_backgroundPixmap]; |
843 | |
842 | |
844 | if ((p = strchr (p, ';')) != 0) |
843 | if ((p = strchr (p, ';')) != 0) |
845 | { |
844 | { |
846 | p++; |
845 | p++; |
847 | bgPixmap.set_geometry (p); |
846 | bg_set_geometry (p); |
848 | } |
847 | } |
849 | else |
848 | else |
850 | bgPixmap.set_defaultGeometry (); |
849 | bg_set_default_geometry (); |
851 | |
850 | |
852 | if (bgPixmap.set_file (rs[Rs_backgroundPixmap])) |
851 | if (bg_set_file (rs[Rs_backgroundPixmap])) |
853 | if (!bgPixmap.window_position_sensitive ()) |
852 | if (!bg_window_position_sensitive ()) |
854 | update_background (); |
853 | update_background (); |
855 | } |
854 | } |
856 | #endif |
855 | #endif |
857 | } |
856 | } |
858 | #endif |
857 | #endif |
… | |
… | |
1505 | #if ENABLE_EWMH |
1504 | #if ENABLE_EWMH |
1506 | xa[XA_NET_WM_PING], |
1505 | xa[XA_NET_WM_PING], |
1507 | #endif |
1506 | #endif |
1508 | }; |
1507 | }; |
1509 | |
1508 | |
1510 | XSetWMProtocols (dpy, top, protocols, sizeof (protocols) / sizeof (protocols[0])); |
1509 | XSetWMProtocols (dpy, top, protocols, ARRAY_LENGTH(protocols)); |
1511 | |
1510 | |
1512 | #if ENABLE_FRILLS |
1511 | #if ENABLE_FRILLS |
1513 | if (rs[Rs_transient_for]) |
1512 | if (rs[Rs_transient_for]) |
1514 | XSetTransientForHint (dpy, top, (Window)strtol (rs[Rs_transient_for], 0, 0)); |
1513 | XSetTransientForHint (dpy, top, (Window)strtol (rs[Rs_transient_for], 0, 0)); |
1515 | #endif |
1514 | #endif |