public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Bug: XTerm scrollbar issue
@ 2010-07-08 18:48 webmaster
  2010-07-12 15:02 ` webmaster
  0 siblings, 1 reply; 5+ messages in thread
From: webmaster @ 2010-07-08 18:48 UTC (permalink / raw)
  To: cygwin-xfree

> The issue is documented in xterm's INSTALL file.  Packagers have to
> essentially ensure that the prototype for XawScrollbarSetThumb is compiled
> properly.  For instance, the package for xterm in Debian uses
> --enable-narrowproto
>
> That turns on a #define for NARROWPROTO which may be missing (or not not
> coordinated with Xfuncproto.h, which in turn sets #defines used in Xaw, to
> choose between a "float" and a "double" for the type of one of its
> parameters).

Changing subject to reflect that this is a bug with the Cygwin XTerm package.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: XTerm scrollbar issue
  2010-07-08 18:48 Bug: XTerm scrollbar issue webmaster
@ 2010-07-12 15:02 ` webmaster
  2010-07-13 14:47   ` Jon TURNEY
  0 siblings, 1 reply; 5+ messages in thread
From: webmaster @ 2010-07-12 15:02 UTC (permalink / raw)
  To: cygwin-xfree

>> --enable-narrowproto
>> That turns on a #define for NARROWPROTO which may be missing
> Changing subject to reflect that this is a bug with the Cygwin XTerm package.
I confirmed that --enable-narrowproto resolves the issue by compiling
the xterm-260-1 source package. My configure options were:

configure --disable-imake --disable-narrowproto --prefix=/usr
--target=i686-pc-cygwin --host=i686-pc-cygwin --build=i686-pc-cygwin

Resultant xterm.exe works as expected.  Seems a simple fix.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: XTerm scrollbar issue
  2010-07-12 15:02 ` webmaster
@ 2010-07-13 14:47   ` Jon TURNEY
  2010-07-13 14:52     ` Thomas Dickey
  0 siblings, 1 reply; 5+ messages in thread
From: Jon TURNEY @ 2010-07-13 14:47 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: dfelicia

On 12/07/2010 16:02, webmaster wrote:
>>> --enable-narrowproto
>>> That turns on a #define for NARROWPROTO which may be missing
>> Changing subject to reflect that this is a bug with the Cygwin XTerm package.
> I confirmed that --enable-narrowproto resolves the issue by compiling
> the xterm-260-1 source package. My configure options were:
>
> configure --disable-imake --disable-narrowproto --prefix=/usr
> --target=i686-pc-cygwin --host=i686-pc-cygwin --build=i686-pc-cygwin

Thanks for the clear problem report.

For the avoidance of doubt, since you mention both alternatives in your email, 
we need to add --disable-narrowproto to build xterm with correctly working 
scrollbars on cygwin.

I note that the list of platforms for which --enable-narrowproto is the 
default in xterm's aclocal.m4 CF_ENABLE_NARROWPROTO macro (which includes 
cygwin) doesn't match the list of platforms which default to narrow prototypes 
in xproto (which doesn't include cygwin).  This makes me wonder if the cygwin 
platform default managed to get changed during modularization...

I'm afraid I didn't quite understand the explanation as to why Xfuncproto.h 
might be wrong, so I'm wondering if any other X applications might also show 
this problem...

In any case, I'll see if I can get xterm rebuilt with this configuration change.

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: XTerm scrollbar issue
  2010-07-13 14:47   ` Jon TURNEY
@ 2010-07-13 14:52     ` Thomas Dickey
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Dickey @ 2010-07-13 14:52 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: dfelicia

On Tue, 13 Jul 2010, Jon TURNEY wrote:

> I note that the list of platforms for which --enable-narrowproto is the 
> default in xterm's aclocal.m4 CF_ENABLE_NARROWPROTO macro (which includes 
> cygwin) doesn't match the list of platforms which default to narrow 
> prototypes in xproto (which doesn't include cygwin).  This makes me wonder if 
> the cygwin platform default managed to get changed during modularization...

modularization broke portabililty some time ago, by discarding the
customizations embedded in the imake configurations.  xterm's configure
script only has what was in the imake configuration, so presumably when
cygwin stopped relying on that, it broke here.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: XTerm scrollbar issue
@ 2010-08-09 23:20 Ken
  0 siblings, 0 replies; 5+ messages in thread
From: Ken @ 2010-08-09 23:20 UTC (permalink / raw)
  To: cygwin-xfree


> On 12/07/2010 16:02, webmaster wrote:
>
>             --enable-narrowproto
>             That turns on a #define for NARROWPROTO which may be missing
>                      
>
>         Changing subject to reflect that this is a bug with the Cygwin
>         XTerm package. 
>
>     I confirmed that --enable-narrowproto resolves the issue by compiling
>     the xterm-260-1 source package. My configure options were:
>
>
>     configure --disable-imake --disable-narrowproto --prefix=/usr
>     --target=i686-pc-cygwin --host=i686-pc-cygwin --build=i686-pc-cygwin
>          
>
>
[snip]
>
> In any case, I'll see if I can get xterm rebuilt with this 
> configuration change.

Hello,

It appears that the latest xterm-261-1 package still exhibits the 
dysfunctional scrollbar behavior
(tested with Xorg server 1.8.0-1).  The scroll handle starts at the top 
of the slider and never
moves.  And, when any mouse button action is issued in the scroll bar 
area, the entire bar (full
height of the xterm window) becomes shaded.  While scrolling is still 
possible, it is not the
expected, nor desired, behavior.  This was true of the previous 260-1 
package (and a few prior)
as well.

It appears that an attempted workaround/solution was incorporated in the 
"xterm-261-1.cygport"
file (provided with the src used to build this release) by adding the 
"--disable-narrowproto" option.
However, the "--disable-imake" option also appears to be required to 
resolve this errant behavior.

To resolve this issue, I rebuilt my xterm from the xterm-261-1 release 
src as follows (detailed for clarity):
(note: lines prefixed with "[user@node] >" denotes a cygwin bash shell 
command-line operation)

  - installed the src (via cygwin setup)
  - [user@node] > mkdir ~/xterm-build
  - [user@node] > cd ~/xterm-build
  - [user@node] > cp /usr/src/xterm-261* .
  - edited the "xterm-261-1.cygport" file (used vi) to _ADD_ only the 
"--disable-imake" option; which
     results in the following:
    ------------------------------
     cygconf \
         --disable-desktop \
         --disable-imake \
         --disable-narrowproto \
         --disable-setuid \
         --enable-ansi-color \
         --enable-256-color \
         --enable-broken-osc \
         --enable-broken-st \
         --enable-dabbrev \
         --enable-doublechars \
         --enable-freetype \
         --enable-i18n \
         --enable-load-vt-fonts \
         --enable-logging \
         --enable-luit --enable-mini-luit \
         --enable-tcap-query \
         --enable-toolbar \
         --enable-wide-chars \
         --with-app-defaults=$(pkg-config --variable=appdefaultdir xt) \
         cf_cv_svr4=no
    ------------------------------
  - built the package as follows:
    -- met the build prerequisites defined in the 
"xterm-261-1.cygwin.patch" file
    -- [user@node] > cygport ./xterm-261-1.cygport all
  - exited and closed all cygwin X-sessions and X-server
  - started a cygwin bash console session (via the 'Cygwin Bash Shell' 
shortcut)
  - installed the newly-built xterm package from the newly-created 
"xterm-261-1.tar.bz2"
     file as follows:
    -- [user@node] > cd /
    -- [user@node] > tar xvf ~/xterm-build/xterm-261-1.tar.bz2 --bzip2
  - started the XWin server and an xterm terminal

The result is that the scrollbar now works fine ... the scroll handle 
starts as the full height of
the window and compresses towards the bottom of the slider as the 
content scrolls off the
top of the screen.  Also, mouse button actions no longer change the size 
of the handle.

Tested only in Win7 64-bit.

I just thought this may be helpful feedback.

BTW, my sincere thanks goes out to all of the hard-working developers 
and contributors
of Cygwin!!!  Thank You! :-)

Kindly,
Ken


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-09 23:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-08 18:48 Bug: XTerm scrollbar issue webmaster
2010-07-12 15:02 ` webmaster
2010-07-13 14:47   ` Jon TURNEY
2010-07-13 14:52     ` Thomas Dickey
2010-08-09 23:20 Ken

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).