… | |
… | |
26 | * Copyright (c) 1998 Alfredo K. Kojima <kojima@windowmaker.org> |
26 | * Copyright (c) 1998 Alfredo K. Kojima <kojima@windowmaker.org> |
27 | * Copyright (c) 2001 Marius Gedminas |
27 | * Copyright (c) 2001 Marius Gedminas |
28 | * - Ctrl/Mod4+Tab works like Meta+Tab (options) |
28 | * - Ctrl/Mod4+Tab works like Meta+Tab (options) |
29 | * Copyright (c) 2003 Rob McMullen <robm@flipturn.org> |
29 | * Copyright (c) 2003 Rob McMullen <robm@flipturn.org> |
30 | * Copyright (c) 2003-2007 Marc Lehmann <pcg@goof.com> |
30 | * Copyright (c) 2003-2007 Marc Lehmann <pcg@goof.com> |
|
|
31 | * Copyright (c) 2007 Emanuele Giaquinta <e.giaquinta@glauco.it> |
31 | * |
32 | * |
32 | * This program is free software; you can redistribute it and/or modify |
33 | * This program is free software; you can redistribute it and/or modify |
33 | * it under the terms of the GNU General Public License as published by |
34 | * it under the terms of the GNU General Public License as published by |
34 | * the Free Software Foundation; either version 2 of the License, or |
35 | * the Free Software Foundation; either version 2 of the License, or |
35 | * (at your option) any later version. |
36 | * (at your option) any later version. |
… | |
… | |
220 | ch = *chr++; |
221 | ch = *chr++; |
221 | |
222 | |
222 | sprintf (buf, "%8x", ch); |
223 | sprintf (buf, "%8x", ch); |
223 | scr_overlay_set (0, y, buf); |
224 | scr_overlay_set (0, y, buf); |
224 | scr_overlay_set (9, y, '='); |
225 | scr_overlay_set (9, y, '='); |
225 | # if !UNICODE3 |
226 | # if !UNICODE_3 |
226 | if (ch >= 0x10000) |
227 | if (ch >= 0x10000) |
227 | ch = 0xfffd; |
228 | ch = 0xfffd; |
228 | # endif |
229 | # endif |
229 | scr_overlay_set (11, y, ch, r); |
230 | scr_overlay_set (11, y, ch, r); |
230 | |
231 | |
… | |
… | |
2007 | } |
2008 | } |
2008 | else |
2009 | else |
2009 | switch (ev.button) |
2010 | switch (ev.button) |
2010 | { |
2011 | { |
2011 | case Button2: |
2012 | case Button2: |
2012 | switch (scrollbar_align) |
2013 | switch (scrollBar.align) |
2013 | { |
2014 | { |
2014 | case R_SB_ALIGN_TOP: |
2015 | case R_SB_ALIGN_TOP: |
2015 | csrO = 0; |
2016 | csrO = 0; |
2016 | break; |
2017 | break; |
2017 | case R_SB_ALIGN_CENTRE: |
2018 | case R_SB_ALIGN_CENTRE: |
… | |
… | |
2029 | |
2030 | |
2030 | scrollBar.setMotion (); |
2031 | scrollBar.setMotion (); |
2031 | break; |
2032 | break; |
2032 | |
2033 | |
2033 | case Button1: |
2034 | case Button1: |
2034 | if (scrollbar_align == R_SB_ALIGN_CENTRE) |
2035 | if (scrollBar.align == R_SB_ALIGN_CENTRE) |
2035 | csrO = ev.y - scrollBar.top; |
2036 | csrO = ev.y - scrollBar.top; |
2036 | /* FALLTHROUGH */ |
2037 | /* FALLTHROUGH */ |
2037 | |
2038 | |
2038 | case Button3: |
2039 | case Button3: |
2039 | if (scrollBar.style != R_SB_XTERM) |
2040 | if (scrollBar.style != R_SB_XTERM) |