microsoft / microsoft/wslg

Context menu doesn't respect screen bounds

Open
#641 44 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug window-management
Dominant language
C++
Stars
11.9k
Forks
429
PR merge metrics
No merged PRs in 30d

Description

Note to contributors: I'm unsubscribing from this issue. If you implement a solution and want to ask a user to verify it, then please ping any of the rest of the users in this thread, thanks.

Environment

Windows build number: 10.0.22000.0 
Your Distribution version: Ubuntu 21.04
Your WSLg version: 1.0.26

Steps to reproduce

Open a GUI app which supports opening context menu and right click on it. (I've checked with Nautilus and Sublime Merge.)

Expected behavior

Context menu should appear inside the screen.

Actual behavior

Context menu are not trying to position themselves inside the screen and are always opened to the right of the cursor. Screenshots are of right edge of the screen:

image

Nautilus

image

Sublime Merge

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in WSLg with Nautilus or Sublime Merge, especially when the pointer is near the right edge of the screen. Trace how WSLg handles context-menu placement and verify that menus remain fully inside the screen bounds without breaking normal placement elsewhere.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.