warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.38k stars 373 forks source link

Have to click twice if window isn't focused #3987

Closed WoodyWoodsta closed 10 months ago

WoodyWoodsta commented 10 months ago

Discord username (optional)

woodywoodsta

Describe the bug

If the Warp window is not focused, clicking something in the window (like a tab, or pane) does not do anything, except focus the window. Then a second click on the UI element is required to effect a click, once the window has focus.

This is particularly annoying because it seems to be a different behaviour from all other apps.

To reproduce

Expected behavior

Even if the window is unfocused, the first click to should be producing a click, as well as focusing the window.

Screenshots

https://github.com/warpdotdev/Warp/assets/8268040/c5e83cf1-a4d7-4a38-9b18-228bc7c1a0ff

Operating system

MacOS

Operating system and version

14.2 (23C64)

Shell Version

No response

Current Warp version

v0.2023.12.12.08.02.stable_04

Regression

Yes, this bug started recently or with an X Warp version

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

dannyneira commented 10 months ago

Hey @WoodyWoodsta This is a known issue with a focusing tab/buttons based on click location when foregrounding in Warp. We've released a partial fix for the pane selection when foregrounding, but are still lacking the same for tabs and buttons so thanks for submitting this.

We're tracking this issue over at https://github.com/warpdotdev/Warp/issues/739 and would appreciate it if you could 👍 and comment there if you're also experiencing the same bug. This helps us gauge the impact of the issue.

We'll be closing this as a duplicate.

dannyneira commented 10 months ago

Duplicate of https://github.com/warpdotdev/Warp/issues/739