Skip to content

[Bug]: directional hotkeys are inverted on vertical monitors #474

Description

@alextremblay

Issue type

Multi-monitor / workspaces

What happened? (actual behavior)

I have two monitors. one configured in omni as horizontal, one as vertical

I have hotkeys configured to focus left, right, up, down and to move windows left, right, up, down

When i focus / move windows on my main (horizontal) monitor, everything works correctly

When i move two windows onto my second display, things get weird. the windows tile horizontally (see pic attached below

Image

with the left window focused, as seen in the screenshot, focusing right does nothing. Focusing up focuses the right window

Image

and focusing down moves focus to the left window

if i hit the keyboard shortcut to move the left window into the right one, they form a vertical stack. Trying to move focus up and down the stack does nothing, but moving focus left / right causes focus to move up/down the stack

Also note, if i manually configure the window's orientation to "Horizontal", none of these issues occur. I will keep doing that for now as a workaround

What did you expect?

focusing / moving left <---> right should cause windows to focus / move left <---> right
focusing / moving up <---> down should cause windows to focus / move up <---> down

Reproduction steps

  1. Connect a second display, allow it to pick up the correct orientation ("Vertical") from MacOS
  2. Move two or more windows to it
  3. try to navigate / move windows directionally, the directions are swapped (up = left, down = right)

Affected app(s)

No response

OmniWM version

v0.5.6

macOS version

26.5.2

Active layout

Niri

Did this work in an earlier version?

No response

Diagnostics bundle (strongly recommended)

omniwm-trace-1783961072345-1783961095057.log

Screenshots or screen recording

No response

Before submitting

  • I searched existing open and closed issues and confirmed this isn't a duplicate.
  • I'm on a recent OmniWM version and the issue still occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions