… | |
… | |
94 | XK_ISO_Left_Tab, 0x21e6, |
94 | XK_ISO_Left_Tab, 0x21e6, |
95 | XK_Shift_L, 0x21e7, |
95 | XK_Shift_L, 0x21e7, |
96 | XK_Shift_R, 0x21e7, |
96 | XK_Shift_R, 0x21e7, |
97 | |
97 | |
98 | XK_Shift_Lock, 0x21eb, |
98 | XK_Shift_Lock, 0x21eb, |
99 | XK_ISO_Lock, 0x21eb, |
|
|
100 | XK_ISO_Lock, 0x21eb, |
99 | XK_ISO_Lock, 0x21eb, |
101 | XK_Caps_Lock, 0x21ec, |
100 | XK_Caps_Lock, 0x21ec, |
102 | XK_Num_Lock, 0x21ed, |
101 | XK_Num_Lock, 0x21ed, |
103 | XK_ISO_Level3_Shift, 0x21ee, |
102 | XK_ISO_Level3_Shift, 0x21ee, |
104 | XK_ISO_Level3_Lock, 0x21ef, |
103 | XK_ISO_Level3_Lock, 0x21ef, |
… | |
… | |
1488 | resize_all_windows (ev.xconfigure.width, ev.xconfigure.height, 1); |
1487 | resize_all_windows (ev.xconfigure.width, ev.xconfigure.height, 1); |
1489 | #ifdef XPM_BACKGROUND |
1488 | #ifdef XPM_BACKGROUND |
1490 | /* TODO: replace with update_pixmap() that should unify transparency and bg image handling ! */ |
1489 | /* TODO: replace with update_pixmap() that should unify transparency and bg image handling ! */ |
1491 | if (!option (Opt_transparent) && bgPixmap.window_size_sensitive ()) |
1490 | if (!option (Opt_transparent) && bgPixmap.window_size_sensitive ()) |
1492 | { |
1491 | { |
1493 | bgPixmap.render_background (); |
1492 | bgPixmap.render (); |
1494 | scr_touch (true); |
1493 | scr_touch (true); |
1495 | } |
1494 | } |
1496 | #endif |
1495 | #endif |
1497 | } |
1496 | } |
1498 | |
1497 | |
1499 | HOOK_INVOKE ((this, HOOK_CONFIGURE_NOTIFY, DT_XEVENT, &ev, DT_END)); |
1498 | HOOK_INVOKE ((this, HOOK_CONFIGURE_NOTIFY, DT_XEVENT, &ev, DT_END)); |
1500 | |
1499 | |
1501 | #ifdef ENABLE_TRANSPARENCY |
1500 | #ifdef ENABLE_TRANSPARENCY |
1502 | if (option (Opt_transparent)) |
1501 | if (option (Opt_transparent)) |
1503 | bgPixmap.render_background (); |
1502 | bgPixmap.render (); |
1504 | #endif |
1503 | #endif |
1505 | } |
1504 | } |
1506 | break; |
1505 | break; |
1507 | |
1506 | |
1508 | case PropertyNotify: |
1507 | case PropertyNotify: |
… | |
… | |
1577 | if (isScrollbarWindow (ev.xany.window)) |
1576 | if (isScrollbarWindow (ev.xany.window)) |
1578 | { |
1577 | { |
1579 | scrollBar.setIdle (); |
1578 | scrollBar.setIdle (); |
1580 | scrollbar_show (0); |
1579 | scrollbar_show (0); |
1581 | } |
1580 | } |
1582 | |
|
|
1583 | #ifdef ENABLE_TRANSPARENCY |
|
|
1584 | if (am_transparent && ev.xany.window == parent[0]) |
|
|
1585 | XClearWindow (dpy, ev.xany.window); |
|
|
1586 | #endif |
|
|
1587 | } |
1581 | } |
1588 | break; |
1582 | break; |
1589 | |
1583 | |
1590 | case MotionNotify: |
1584 | case MotionNotify: |
1591 | #ifdef POINTER_BLANK |
1585 | #ifdef POINTER_BLANK |
… | |
… | |
1839 | */ |
1833 | */ |
1840 | if (ev.xproperty.atom == xa[XA_XROOTPMAP_ID] |
1834 | if (ev.xproperty.atom == xa[XA_XROOTPMAP_ID] |
1841 | || ev.xproperty.atom == xa[XA_ESETROOT_PMAP_ID]) |
1835 | || ev.xproperty.atom == xa[XA_ESETROOT_PMAP_ID]) |
1842 | { |
1836 | { |
1843 | bgPixmap.set_root_pixmap (); |
1837 | bgPixmap.set_root_pixmap (); |
1844 | bgPixmap.render_background (); |
1838 | bgPixmap.render (); |
1845 | } |
1839 | } |
1846 | break; |
1840 | break; |
1847 | } |
1841 | } |
1848 | # endif |
1842 | # endif |
1849 | } |
1843 | } |
… | |
… | |
3440 | if (ISSET_PIXCOLOR (Color_tint)) |
3434 | if (ISSET_PIXCOLOR (Color_tint)) |
3441 | changed = bgPixmap.set_tint (pix_colors_focused [Color_tint]); |
3435 | changed = bgPixmap.set_tint (pix_colors_focused [Color_tint]); |
3442 | else |
3436 | else |
3443 | changed = bgPixmap.unset_tint (); |
3437 | changed = bgPixmap.unset_tint (); |
3444 | if (changed) |
3438 | if (changed) |
3445 | { |
|
|
3446 | bgPixmap.render_background (); |
3439 | bgPixmap.render (); |
3447 | if (am_transparent) |
|
|
3448 | want_full_refresh = want_refresh = 1; |
|
|
3449 | } |
|
|
3450 | } |
3440 | } |
3451 | |
3441 | |
3452 | break; |
3442 | break; |
3453 | #endif |
3443 | #endif |
3454 | |
3444 | |
… | |
… | |
3484 | changed++; |
3474 | changed++; |
3485 | str = strchr (str, ';'); |
3475 | str = strchr (str, ';'); |
3486 | } |
3476 | } |
3487 | if (changed) |
3477 | if (changed) |
3488 | { |
3478 | { |
3489 | bgPixmap.render_background (); |
3479 | bgPixmap.render (); |
3490 | scr_touch (true); |
3480 | scr_touch (true); |
3491 | } |
3481 | } |
3492 | } |
3482 | } |
3493 | break; |
3483 | break; |
3494 | #endif |
3484 | #endif |
… | |
… | |
3621 | { |
3611 | { |
3622 | unsigned int i, j; |
3612 | unsigned int i, j; |
3623 | int state; |
3613 | int state; |
3624 | |
3614 | |
3625 | static const struct |
3615 | static const struct |
3626 | { |
3616 | { |
3627 | const int argval; |
3617 | const int argval; |
3628 | const unsigned long bit; |
3618 | const unsigned long bit; |
3629 | } |
|
|
3630 | |
|
|
3631 | argtopriv[] = { |
3619 | } argtopriv[] = { |
3632 | { 1, PrivMode_aplCUR }, |
3620 | { 1, PrivMode_aplCUR }, |
3633 | { 2, PrivMode_vt52 }, |
3621 | { 2, PrivMode_vt52 }, |
3634 | { 3, PrivMode_132 }, |
3622 | { 3, PrivMode_132 }, |
3635 | { 4, PrivMode_smoothScroll }, |
3623 | { 4, PrivMode_smoothScroll }, |
3636 | { 5, PrivMode_rVideo }, |
3624 | { 5, PrivMode_rVideo }, |