Skip to content

Fullscreen window needs two clicks to receive keyboard focus #1155

@e-magon

Description

@e-magon

Describe the bug
When a window is in fullscreen mode, clicking it from another focused window does not always transfer keyboard focus on the first click.

The fullscreen window is brought to the center of the display and visually behaves as if it gained focus, but keyboard input still goes to the previously focused application. I need to click the fullscreen window a second time before keyboard input is sent to it.

To Reproduce
Steps to reproduce the behavior:

  1. Open an application that can enter fullscreen, for example Brave with a YouTube video.
  2. Put the video in fullscreen mode.
  3. Focus a different, smaller window next to the fullscreen one.
  4. Click the fullscreen application.
  5. Observe that the fullscreen window becomes visually active / centered, but keyboard input still goes to the previously focused window.
  6. Click the fullscreen application again.
  7. Observe that keyboard input now goes to the fullscreen application.

Expected behavior
Clicking a fullscreen window once should both raise/focus it visually and transfer keyboard focus to it immediately.

System information:
Distribution: NixOS 25.11 (Xantusia)
GNOME Shell: 49.2
Display server: Wayland
PaperWM version: 49.0.0
Enabled extensions:

Additional context
I reproduced this with Brave playing a YouTube video in fullscreen, but the issue may affect fullscreen applications more generally.

The first click appears to change the visual state/layout of the fullscreen window, but does not fully transfer input focus. The second click is required before keyboard events are delivered to the fullscreen application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesirable behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions