… | |
… | |
1438 | && ev.xfocus.mode != NotifyGrab) |
1438 | && ev.xfocus.mode != NotifyGrab) |
1439 | focus_out (); |
1439 | focus_out (); |
1440 | break; |
1440 | break; |
1441 | |
1441 | |
1442 | case ConfigureNotify: |
1442 | case ConfigureNotify: |
1443 | /*fprintf (stderr, "ConfigureNotify for %X, parent is %X, geom is %dx%d%+d%+d, old geom was %dx%d\n", |
1443 | /*fprintf (stderr, "ConfigureNotify for %X, parent is %X, geom is %dx%d%+d%+d, old geom was %dx%d\n", |
1444 | ev.xconfigure.window, parent[0], ev.xconfigure.width, ev.xconfigure.height, ev.xconfigure.x, ev.xconfigure.y, |
1444 | ev.xconfigure.window, parent[0], ev.xconfigure.width, ev.xconfigure.height, ev.xconfigure.x, ev.xconfigure.y, |
1445 | szHint.width, szHint.height); */ |
1445 | szHint.width, szHint.height);*/ |
1446 | if (ev.xconfigure.window == parent[0]) |
1446 | if (ev.xconfigure.window == parent[0]) |
1447 | { |
1447 | { |
1448 | while (XCheckTypedWindowEvent (dpy, ev.xconfigure.window, ConfigureNotify, &ev)) |
1448 | while (XCheckTypedWindowEvent (dpy, ev.xconfigure.window, ConfigureNotify, &ev)) |
1449 | ; |
1449 | ; |
1450 | |
1450 | |
… | |
… | |
1966 | /* |
1966 | /* |
1967 | * Mouse report disabled scrollbar: |
1967 | * Mouse report disabled scrollbar: |
1968 | * arrow buttons - send up/down |
1968 | * arrow buttons - send up/down |
1969 | * click on scrollbar - send pageup/down |
1969 | * click on scrollbar - send pageup/down |
1970 | */ |
1970 | */ |
1971 | if ((scrollBar.style == R_SB_NEXT |
|
|
1972 | && scrollbarnext_upButton (ev.y)) |
1971 | if (scrollBar.upButton (ev.y)) |
1973 | || (scrollBar.style == R_SB_RXVT |
|
|
1974 | && scrollbarrxvt_upButton (ev.y))) |
|
|
1975 | tt_printf ("\033[A"); |
1972 | tt_printf ("\033[A"); |
1976 | else if ((scrollBar.style == R_SB_NEXT |
1973 | else if (scrollBar.dnButton (ev.y)) |
1977 | && scrollbarnext_dnButton (ev.y)) |
|
|
1978 | || (scrollBar.style == R_SB_RXVT |
|
|
1979 | && scrollbarrxvt_dnButton (ev.y))) |
|
|
1980 | tt_printf ("\033[B"); |
1974 | tt_printf ("\033[B"); |
1981 | else |
1975 | else |
1982 | switch (ev.button) |
1976 | switch (ev.button) |
1983 | { |
1977 | { |
1984 | case Button2: |
1978 | case Button2: |
… | |
… | |
1996 | #endif /* NO_SCROLLBAR_REPORT */ |
1990 | #endif /* NO_SCROLLBAR_REPORT */ |
1997 | |
1991 | |
1998 | { |
1992 | { |
1999 | char upordown = 0; |
1993 | char upordown = 0; |
2000 | |
1994 | |
2001 | if (scrollBar.style == R_SB_NEXT) |
|
|
2002 | { |
|
|
2003 | if (scrollbarnext_upButton (ev.y)) |
1995 | if (scrollBar.upButton (ev.y)) |
2004 | upordown = -1; /* up */ |
1996 | upordown = -1; /* up */ |
2005 | else if (scrollbarnext_dnButton (ev.y)) |
1997 | else if (scrollBar.dnButton (ev.y)) |
2006 | upordown = 1; /* down */ |
1998 | upordown = 1; /* down */ |
2007 | } |
|
|
2008 | else if (scrollBar.style == R_SB_RXVT) |
|
|
2009 | { |
|
|
2010 | if (scrollbarrxvt_upButton (ev.y)) |
|
|
2011 | upordown = -1; /* up */ |
|
|
2012 | else if (scrollbarrxvt_dnButton (ev.y)) |
|
|
2013 | upordown = 1; /* down */ |
|
|
2014 | } |
|
|
2015 | |
1999 | |
2016 | if (upordown) |
2000 | if (upordown) |
2017 | { |
2001 | { |
2018 | #ifndef NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING |
2002 | #ifndef NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING |
2019 | if (!cont_scroll_ev.is_active ()) |
2003 | if (!cont_scroll_ev.is_active ()) |
… | |
… | |
2848 | // versions. |
2832 | // versions. |
2849 | // |
2833 | // |
2850 | tt_printf ("\033[>%d;95;0c", 'U'); |
2834 | tt_printf ("\033[>%d;95;0c", 'U'); |
2851 | } |
2835 | } |
2852 | break; |
2836 | break; |
|
|
2837 | |
2853 | case '?': |
2838 | case '?': |
2854 | if (ch == 'h' || ch == 'l' || ch == 'r' || ch == 's' || ch == 't') |
2839 | if (ch == 'h' || ch == 'l' || ch == 'r' || ch == 's' || ch == 't') |
2855 | process_terminal_mode (ch, priv, nargs, arg); |
2840 | process_terminal_mode (ch, priv, nargs, arg); |
2856 | break; |
2841 | break; |
2857 | } |
2842 | } |
… | |
… | |
3629 | // 1037 send DEL for keypad delete NYI |
3614 | // 1037 send DEL for keypad delete NYI |
3630 | { 1047, PrivMode_Screen }, |
3615 | { 1047, PrivMode_Screen }, |
3631 | // 1048 save and restore cursor |
3616 | // 1048 save and restore cursor |
3632 | { 1049, PrivMode_Screen }, /* xterm extension, clear screen on ti rather than te */ |
3617 | { 1049, PrivMode_Screen }, /* xterm extension, clear screen on ti rather than te */ |
3633 | // 1051, 1052, 1060, 1061 keyboard emulation NYI |
3618 | // 1051, 1052, 1060, 1061 keyboard emulation NYI |
|
|
3619 | { 2004, PrivMode_BracketPaste }, |
3634 | }; |
3620 | }; |
3635 | |
3621 | |
3636 | if (nargs == 0) |
3622 | if (nargs == 0) |
3637 | return; |
3623 | return; |
3638 | |
3624 | |