Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse click not working for games on the right side of the external display screen when laptop display is disabled in clamshell mode #8590

Open
domeniczz opened this issue Mar 1, 2025 · 2 comments
Labels
bug Not working as intended

Comments

@domeniczz
Copy link

Sway Version:

1.10.1

Debug Log:

sway.log

Configuration File:

set $main eDP-1
set $external HDMI-A-1

output * bg $HOME/Pictures/wallpapers/wallpaper.jpg fill
# You can get the names of your outputs by running: swaymsg -t get_outputs
output $main {
    scale 1.5 mode 2160x1440 position 0,0
    max_render_time off
    allow_tearing no
    adaptive_sync on
}
output $external {
    scale 1.5 mode 3840x2160 position 1440,0
    max_render_time off
    allow_tearing no
    adaptive_sync on
}

bindswitch --reload --locked lid:on output $main disable
bindswitch --reload --locked lid:off output $main enable

Description:

When using Sway in clamshell mode (laptop lid closed), mouse cursor can move across the entire external monitor, but clicks only register on the left half of the screen when playing game on steam (e.g. Balatro). Opening the laptop lid immediately resolves this issue, and I can play the game normally, suggesting a coordinate mapping problem when the laptop display is disabled.

Then close the laptop lid again, the game window will not be fullscreen anymore, it will be tiled on the side if the workspace it is at have other programs opened. And then, open the laptop lid again, I am able to move game window to an empty workspace and continue playing the game normally.

@domeniczz domeniczz added the bug Not working as intended label Mar 1, 2025
@Arunima22
Copy link

Hey! I would like to solve this issue. May I please be assigned to it?

@emersion
Copy link
Member

emersion commented Mar 6, 2025

Feel free to send a patch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

3 participants