… | |
… | |
14 | * - extensive modifications |
14 | * - extensive modifications |
15 | * Copyright (c) 2003-2008 Marc Lehmann <schmorp@schmorp.de> |
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 3 of the License, or |
20 | * (at your option) any later version. |
20 | * (at your option) any later version. |
21 | * |
21 | * |
22 | * This program is distributed in the hope that it will be useful, |
22 | * This program is distributed in the hope that it will be useful, |
23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
… | |
… | |
519 | #endif |
519 | #endif |
520 | COLOR_SCROLLBAR, |
520 | COLOR_SCROLLBAR, |
521 | #ifdef RXVT_SCROLLBAR |
521 | #ifdef RXVT_SCROLLBAR |
522 | COLOR_SCROLLTROUGH, |
522 | COLOR_SCROLLTROUGH, |
523 | #endif |
523 | #endif |
524 | #if ENABLE_TRANSPARENCY |
524 | #if BG_IMAGE_FROM_ROOT |
525 | NULL, |
525 | NULL, |
526 | #endif |
526 | #endif |
527 | #if OFF_FOCUS_FADING |
527 | #if OFF_FOCUS_FADING |
528 | "rgb:00/00/00", |
528 | "rgb:00/00/00", |
529 | #endif |
529 | #endif |
… | |
… | |
659 | if (rs[Rs_pointerBlankDelay] && (i = atoi (rs[Rs_pointerBlankDelay])) >= 0) |
659 | if (rs[Rs_pointerBlankDelay] && (i = atoi (rs[Rs_pointerBlankDelay])) >= 0) |
660 | pointerBlankDelay = i; |
660 | pointerBlankDelay = i; |
661 | else |
661 | else |
662 | pointerBlankDelay = 2; |
662 | pointerBlankDelay = 2; |
663 | #endif |
663 | #endif |
|
|
664 | |
|
|
665 | if (rs[Rs_multiClickTime] && (i = atoi (rs[Rs_multiClickTime])) >= 0) |
|
|
666 | multiClickTime = i; |
|
|
667 | else |
|
|
668 | multiClickTime = 500; |
|
|
669 | |
|
|
670 | cursor_type = option (Opt_cursorUnderline) ? 1 : 0; |
664 | |
671 | |
665 | /* no point having a scrollbar without having any scrollback! */ |
672 | /* no point having a scrollbar without having any scrollback! */ |
666 | if (!saveLines) |
673 | if (!saveLines) |
667 | set_option (Opt_scrollBar, 0); |
674 | set_option (Opt_scrollBar, 0); |
668 | |
675 | |
… | |
… | |
805 | XSynchronize (dpy, True); |
812 | XSynchronize (dpy, True); |
806 | #endif |
813 | #endif |
807 | |
814 | |
808 | if (option (Opt_scrollBar)) |
815 | if (option (Opt_scrollBar)) |
809 | scrollBar.resize (); /* create and map scrollbar */ |
816 | scrollBar.resize (); /* create and map scrollbar */ |
|
|
817 | |
810 | #ifdef HAVE_BG_PIXMAP |
818 | #ifdef HAVE_BG_PIXMAP |
811 | { |
|
|
812 | bg_init (); |
819 | bg_init (); |
813 | |
|
|
814 | #if ENABLE_TRANSPARENCY |
|
|
815 | if (option (Opt_transparent)) |
|
|
816 | { |
|
|
817 | bg_set_transparent (); |
|
|
818 | |
|
|
819 | if (rs [Rs_blurradius]) |
|
|
820 | root_effects.set_blur (rs [Rs_blurradius]); |
|
|
821 | |
|
|
822 | if (ISSET_PIXCOLOR (Color_tint)) |
|
|
823 | root_effects.set_tint (pix_colors_focused [Color_tint]); |
|
|
824 | |
|
|
825 | if (rs [Rs_shade]) |
|
|
826 | root_effects.set_shade (rs [Rs_shade]); |
|
|
827 | |
|
|
828 | bg_set_root_pixmap (); |
|
|
829 | XSelectInput (dpy, display->root, PropertyChangeMask); |
|
|
830 | rootwin_ev.start (display, display->root); |
|
|
831 | } |
|
|
832 | #endif |
|
|
833 | } |
|
|
834 | #endif |
820 | #endif |
835 | |
821 | |
836 | #if ENABLE_PERL |
822 | #if ENABLE_PERL |
837 | rootwin_ev.start (display, display->root); |
823 | rootwin_ev.start (display, display->root); |
838 | #endif |
824 | #endif |
… | |
… | |
1417 | classHint.res_name = (char *)rs[Rs_name]; |
1403 | classHint.res_name = (char *)rs[Rs_name]; |
1418 | classHint.res_class = (char *)RESCLASS; |
1404 | classHint.res_class = (char *)RESCLASS; |
1419 | |
1405 | |
1420 | wmHint.flags = InputHint | StateHint | WindowGroupHint; |
1406 | wmHint.flags = InputHint | StateHint | WindowGroupHint; |
1421 | wmHint.input = True; |
1407 | wmHint.input = True; |
1422 | wmHint.initial_state = option (Opt_iconic) ? IconicState : NormalState; |
1408 | wmHint.initial_state = option (Opt_iconic) ? IconicState |
|
|
1409 | : option (Opt_dockapp) ? WithdrawnState |
|
|
1410 | : NormalState; |
1423 | wmHint.window_group = top; |
1411 | wmHint.window_group = top; |
1424 | |
1412 | |
1425 | XmbSetWMProperties (dpy, top, NULL, NULL, (char **)argv, argc, |
1413 | XmbSetWMProperties (dpy, top, NULL, NULL, (char **)argv, argc, |
1426 | &szHint, &wmHint, &classHint); |
1414 | &szHint, &wmHint, &classHint); |
1427 | #if ENABLE_EWMH |
1415 | #if ENABLE_EWMH |
… | |
… | |
1429 | * set up icon hint |
1417 | * set up icon hint |
1430 | * rs [Rs_iconfile] is path to icon |
1418 | * rs [Rs_iconfile] is path to icon |
1431 | */ |
1419 | */ |
1432 | |
1420 | |
1433 | if (rs [Rs_iconfile]) |
1421 | if (rs [Rs_iconfile]) |
1434 | { |
|
|
1435 | set_icon (rs [Rs_iconfile]); |
1422 | set_icon (rs [Rs_iconfile]); |
1436 | } |
|
|
1437 | #endif |
1423 | #endif |
1438 | |
1424 | |
1439 | #if ENABLE_FRILLS |
1425 | #if ENABLE_FRILLS |
1440 | if (mwmhints.flags) |
1426 | if (mwmhints.flags) |
1441 | XChangeProperty (dpy, top, xa[XA_MOTIF_WM_HINTS], xa[XA_MOTIF_WM_HINTS], 32, |
1427 | XChangeProperty (dpy, top, xa[XA_MOTIF_WM_HINTS], xa[XA_MOTIF_WM_HINTS], 32, |