GTK3: drag source images for tables are blurry on Wayland with fractional scaling
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by running the provided Java reproduction on GTK3 under Wayland at 150% or 166% scaling and inspect the SWT GTK drag-image path that creates Cairo surfaces. The issue points to missing device scale as the cause; confirm where the surface is created and how its scale is set. Done when the reproduced drag image is crisp at fractional scaling without regressing other GTK drag behavior.
索引モデルが issue の本文から書いたものです。
説明
On Linux using GTK3, the images drawn for drag&drop operations are sometimes blurry.
Apparently this is because the Cairo surfaces for drawing the images lack device scale, leading to the images having to be scaled up afterwards, rendering them blurry.
Reproduce using this snippet, running on Wayland with a fractional scale (150% or 166% for example).
import org.eclipse.swt.*;
import org.eclipse.swt.dnd.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.widgets.*;
public class LinuxDndImageBlurTest {
public static void main(String[] args) {
final Display display = new Display();
final Shell shell = new Shell(display);
shell.setText("GTK3 drag image scaling");
shell.setLayout(new GridLayout());
final Label instructions = new Label(shell, SWT.WRAP);
instructions.setText("Drag a row. With display scaling above 100%, the row image is blurry.");
instructions.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
final Table table = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION | SWT.SINGLE);
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
for (int index = 1; index <= 10; index++) {
final TableItem item = new TableItem(table, SWT.NONE);
item.setText("Drag row " + index + " — sharp text makes scaling artifacts easy to see");
}
// no idea why this is somehow necessary for drag to work in this snippet
display.addFilter(SWT.MouseDown, e -> System.err.println("MouseDown " + e));
final DragSource dragSource = new DragSource(table, DND.DROP_COPY);
dragSource.addDragListener(new DragSourceAdapter() {
@Override
public void dragSetData(DragSourceEvent event) {
event.data = table.getSelection()[0].getText();
}
});
dragSource.setTransfer(TextTransfer.getInstance());
shell.setSize(600, 350);
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
display.dispose();
}
}
Expected behavior
A drag image which is drawn as crisply as the row it's created from.
- 主要言語
- Java
- スター
- 202
- フォーク
- 206
- 平均マージ
- 16時間 56分
- マージ済み PR(30日)
- 110
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-platform/eclipse.platform.swt のほかの issue
-
`SWT_AWT.initFrame` takes `(long, String)` in Java; the GTK native declares no `className` and the Cocoa native types it `const char *`対応中かも @GreenFuze が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
eclipse-platform/eclipse.platform.swt#3665 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
eclipse-platform/eclipse.platform.swt#3546 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
eclipse-platform/eclipse.platform.swt#3428 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 75/100
eclipse-platform/eclipse.platform.swt#3336 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
eclipse-platform/eclipse.platform.swt#3718 ·
メンテナーはふだん 1 日以内に返信
eclipse-platform/eclipse.platform.swt の issue をすべて見る
似ている issue
-
area/plugin good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
kestra-io/plugin-kestra#200 ·
メンテナーはふだん 1 日以内に返信
-
bug untriaged
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
opensearch-project/search-relevance#618 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
apache/rocketmq-dashboard#6716 ·
メンテナーはふだん 3 日以内に返信
-
DefaultRedisList.get(int) does not reject an index equal to the list size対応中かも @ryujungkyun が今日担当しました。 オープンstatus: waiting-for-triage
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
spring-projects/spring-data-redis#3471 ·
メンテナーはふだん 5 日以内に返信
-
in: build type: dependency-upgrade
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
spring-projects/spring-ldap#1791 ·
メンテナーはふだん 1 日以内に返信