Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » wacom tablet on ubuntu problem selecting(One by Wacom tablet on Ubuntu with eclipse 2023-09 does not select properly.)
wacom tablet on ubuntu problem selecting [message #1861663] Wed, 25 October 2023 22:43 Go to next message
Craig Foote is currently offline Craig FooteFriend
Messages: 217
Registered: July 2009
Senior Member
My wacom tablet works fine in Ubuntu except in eclipse. There a single click should set the caret in a textviewer without selecting anything - just positioning the cursor. However I see the cursor move upward through the lines of text to the top of the file, selecting as it goes. See attached gif demonstrating the problem. Also I'm not able to close editors or views using the pen clicking on the 'X'. Any ideas?

index.php/fa/43636/0/
Re: wacom tablet on ubuntu problem selecting [message #1861699 is a reply to message #1861663] Sat, 28 October 2023 14:00 Go to previous messageGo to next message
Craig Foote is currently offline Craig FooteFriend
Messages: 217
Registered: July 2009
Senior Member
After a little testing I think I narrowed it down to the StyledText widget. A Text does not have the problem but a StyledText does.

https://i.imgur.com/Y8PacnY.gif
Re: wacom tablet on ubuntu problem selecting [message #1861700 is a reply to message #1861699] Sat, 28 October 2023 22:58 Go to previous messageGo to next message
Craig Foote is currently offline Craig FooteFriend
Messages: 217
Registered: July 2009
Senior Member
I believe this block is involved but to be honest I'm not sure I follow the logic:

StyledText#doMouseLocationChange

	// Is the mouse within the left client area border or on
	// a different line? If not the autoscroll selection
	// could be incorrectly reset. Fixes 1GKM3XS
	boolean vchange = 0 <= y && y < clientAreaHeight || newCaretLine == 0 || newCaretLine == content.getLineCount() - 1;
	boolean hchange = 0 <= x && x < clientAreaWidth || wordWrap || newCaretLine != content.getLineAtOffset(caretOffsets[0]);
	if (vchange && hchange && (newCaretOffset != caretOffsets[0] || newCaretAlignemnt != caretAlignment)) {
		setCaretOffsets(new int[] {newCaretOffset}, newCaretAlignemnt);
		if (select) doMouseSelection();
		showCaret();
	}
	if (!select) {
		setCaretOffsets(new int[] {newCaretOffset}, newCaretAlignemnt);
		clearSelection(true);
	}


I looked on Bugzilla for 1GKM3XS but couldn't find it. Anybody got anything?
Re: wacom tablet on ubuntu problem selecting [message #1861815 is a reply to message #1861700] Mon, 06 November 2023 13:25 Go to previous message
Craig Foote is currently offline Craig FooteFriend
Messages: 217
Registered: July 2009
Senior Member
Nothing from nobody :(
Previous Topic:Is it possible to have a StyledText with a image that is surrounded by text?
Next Topic:SWT table is not automatically adding "..." to columns in GTK
Goto Forum:
  


Current Time: Mon May 06 22:21:43 GMT 2024

Powered by FUDForum. Page generated in 5.04002 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top