Skip to content

Conversation

@amartya4256
Copy link
Contributor

@amartya4256 amartya4256 commented Apr 14, 2025

This PR contributes to fixing the infinite looping effect on showing a tooltip of the tree using per-monitor (V2) awareness on win32 when a tooltip is spans over two monitors having more area on the other monitor than the one on which the cursor is placed. The fix makes sure that the tooltip is not drawn on the other monitors by shifting and adjusting the width.

contributes to #557

@amartya4256 amartya4256 force-pushed the amartya4256/tree_tooltip_deadlock branch from 5d27af7 to 295abc9 Compare April 14, 2025 15:04
@github-actions
Copy link
Contributor

github-actions bot commented Apr 14, 2025

Test Results

   539 files  +13     539 suites  +13   31m 17s ⏱️ - 2m 53s
 4 336 tests ± 0   4 326 ✅ ± 0    9 💤 ±0  1 ❌ ±0 
16 597 runs  +21  16 485 ✅ +21  111 💤 ±0  1 ❌ ±0 

For more details on these failures, see this check.

Results for commit 2e9d2c4. ± Comparison against base commit e63c07d.

♻️ This comment has been updated with latest results.

@amartya4256 amartya4256 force-pushed the amartya4256/tree_tooltip_deadlock branch 2 times, most recently from f163a29 to 4c02530 Compare April 15, 2025 13:07
@amartya4256 amartya4256 changed the title Tooltip Infinite Loop fix for per-monitor #557 Tooltip Infinite Loop fix - Shift or Adjust the tooltip to fit in one monitor #557 Apr 15, 2025
Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thank you, @amartya4256!

I tested with several scenarios, in particular the ones reported in #557, and the problem is properly solved by ensuring that tooltips are always placed inside a single monitor instead of spanning multiple monitors. I tested with both the monitor-specific scaling mode as well as the mode, in which the issue occured as well, and both work fine now.
I think is also valid to just truncate tooltips if they would exceed the horizontal size of a monitor, so that decision is fine more me.

The code also look sound to me. I only have rather nitpicky comments.

@amartya4256 amartya4256 force-pushed the amartya4256/tree_tooltip_deadlock branch from 4c02530 to 1a55dab Compare April 17, 2025 11:27
@HeikoKlare HeikoKlare force-pushed the amartya4256/tree_tooltip_deadlock branch 2 times, most recently from 6bf9700 to 16b37b6 Compare April 17, 2025 14:20
This commit contributes to fixing the infinite looping effect on
painting a tooltip over a TreeItem on win32 when a tooltip spans
over two monitors having more area on the other monitor than the one
on which the cursor is placed. The fix makes sure that the tooltip
is not drawn on the other monitors by shifting or adjusting the width.

Fixes eclipse-platform#557
@HeikoKlare HeikoKlare force-pushed the amartya4256/tree_tooltip_deadlock branch from 16b37b6 to 2e9d2c4 Compare April 22, 2025 09:24
@HeikoKlare
Copy link
Contributor

Windows test failure is unrelated: #1843

Merging this despite Jenkins failure caused by https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/5892

Since master builds seem to still work on Jenkins, the subsequent master build should hopefully work, thus I will check results of that build to retrospectively validate this PR.

@HeikoKlare HeikoKlare merged commit 00c6aef into eclipse-platform:master Apr 22, 2025
8 of 12 checks passed
@HeikoKlare HeikoKlare deleted the amartya4256/tree_tooltip_deadlock branch April 22, 2025 11:24
@HeikoKlare
Copy link
Contributor

No new issues on subsequent master build for 00c6aef

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI freezes because of DPI configuration: "Per-Monitor (v2)"

2 participants