Bug 528819: [GTK3] StyledText draws carets if unfocused

Only draw the caret if it has focus: this logic existed for GTK3.20- but
was removed in a fix for Wayland. Restoring this behaviour fixes the bug
for GTK3.22 as well.

Tested with the snippet attached and in the IDE. No reduction in Caret
performance is observed.

Change-Id: I91d78217e90ce7ac7d1ab3e0898b0dda6fad44d2
Signed-off-by: Eric Williams <ericwill@redhat.com>
2 files changed
tree: 4cdecf44e897f077f47dd81a24705cdc3c7a4892
  1. bundles/
  2. examples/
  3. features/
  4. local-build/
  5. tests/
  6. .gitignore
  7. pom.xml
  8. README.md
README.md

Contributing to SWT

Thanks for your interest in this project.

Developer resources:

See the following description for how to contribute a feature or a bug fix to SWT.

Information regarding source code management, builds, coding standards, and more and be found under the following link.

Contributor License Agreement:

Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).

Contact:

Contact the project developers via the project's “dev” list.

Search for bugs:

This project uses Bugzilla to track ongoing development and issues.

Create a new bug:

Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!