LGUG2Z / komorebi

A tiling window manager for Windows 🍉
https://lgug2z.github.io/komorebi/
Other
9k stars 179 forks source link

[BUG]: Snapping to middle of Screen #816

Open awptechnologies opened 4 months ago

awptechnologies commented 4 months ago

Mouse snaps to center of screen when trying to click on an active service in task bar tray. An example is amd adreniline. When i try to right click to open options my mouse snaps to center of screen and the options never open. Also does this sometimes with windows apps for example settings. When trying to close settings mouse snaps to center of screen and doesn't close. I have to right click and close form task bar. This started after the latest update from winget.

LGUG2Z commented 4 months ago

Can you share your configuration file?

awptechnologies commented 4 months ago

yes.

Komorebi.json

{
  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/master/schema.json",
  "app_specific_configuration_path": "$Env:USERPROFILE/applications.yaml",
  "window_hiding_behaviour": "Cloak",
  "cross_monitor_move_behaviour": "Insert",
  "alt_focus_hack": true,
  "default_workspace_padding": 2,
  "default_container_padding": 2,
  "active_window_border": false,
  "active_window_border_colours": {
    "single": { "r": 66, "g": 165, "b": 245 },
    "stack": { "r": 256, "g": 165, "b": 66 },
    "monocle": { "r": 255, "g": 51, "b": 153 }
  },
  "monitors": [
    {
      "workspaces": [
        { "name": "I", "layout": "BSP" },
        { "name": "II", "layout": "VerticalStack" },
        { "name": "III", "layout": "HorizontalStack" },
        { "name": "IV", "layout": "UltrawideVerticalStack" },
        { "name": "V", "layout": "Rows" }
      ]
    }
  ]
}
LGUG2Z commented 4 months ago

I believe this should be fixed with the latest commits on master

awptechnologies commented 4 months ago

if i have installed with winget how do i get this update

LGUG2Z commented 4 months ago

You can grab the artifacts and run the MSI installer: https://github.com/LGUG2Z/komorebi/actions/runs/9066966920

Run both binaries with the --version flag to be sure that you're running v0.1.26-dev

Insprill commented 4 months ago

I've still had this occur with 77fc3973b69e7dbce696d9cdd981d0d249fffb4c. In my limited testing, it happens when you get a window from one workspace focused when it should be hidden, or (could be wrong) when a window is floating when it shouldn't be (looking at you, settings). I don't have a reliable way to reproduce it, unfortunately, as it's quite rare when it happens.

oc-tk commented 4 months ago

I have the same issue, I am using latest official version v0.1.26 and on top of that I have found similar problems when game is running on borderless window mode.

Overall what I have seen, I have two monitors and I leave one monitor with toggled float on, and on second monitor I will focus other window in workspace. And if I comeback to that window on first monitor it is snapping to the center of monitor and only temp fix is to move the window to different place or toggle float off.

N3bby commented 3 months ago

For anyone experiencing this problem: If you don't care about the mouse_follows_focus feature, you can just turn this off as a workaround. This fixes it for me as far as I can tell.

https://lgug2z.github.io/komorebi/common-workflows/mouse-follows-focus.html

edgimar commented 1 month ago

@LGUG2Z, while this might also just be a workaround, I wonder if it would make sense to expose a move-mouse-to-focused-window command that would cause the mouse to be moved to the active/focused window. Then it would be possible to manage the mouse-movement via AHK, etc., explicitly calling the command when desired/needed.

LGUG2Z commented 1 month ago

This is a great idea @edgimar - will try to get this in for the next release