RectanglePro-Community icon indicating copy to clipboard operation
RectanglePro-Community copied to clipboard

Bug: Window throw not working on macOs 12.6

Open tashima42 opened this issue 3 years ago • 10 comments

Bug description:

When I use the Window throw trigger and move the mouse, I can see the UI, but when I release my mouse, nothing happens. Sometimes it does work, and I have no Idea why.

Useful Information

Sytem Version: macOs Monterey 12.6 (21G115) Hardware: Macbook Air 2020 (M1) Rectangle Pro Version: v2.5.2(121)

I'm using an external monitor I'm adding my configuration in a comment.

I tried to record this behavior using quickTime, but it doesn't work.

tashima42 avatar Sep 15 '22 15:09 tashima42

My rectangle PRO configuration

{
  "bundleId" : "com.knollsoft.Hookshot",
  "defaults" : {
    "allowAnyShortcut" : {
      "bool" : false
    },
    "almostMaximizeHeight" : {
      "float" : 0
    },
    "almostMaximizeWidth" : {
      "float" : 0
    },
    "alternateDefaultShortcuts" : {
      "bool" : false
    },
    "alternateGestureShortcuts" : {
      "bool" : false
    },
    "altThirdCycle" : {
      "int" : 0
    },
    "applyGapToEdges" : {
      "int" : 0
    },
    "attemptMatchOnNextPrevDisplay" : {
      "int" : 0
    },
    "autoRestartOnWake" : {
      "int" : 2
    },
    "cascadeHeight" : {
      "int" : 0
    },
    "cascadeWidth" : {
      "int" : 0
    },
    "centeredDirectionalMove" : {
      "int" : 0
    },
    "centerHalfCycles" : {
      "int" : 0
    },
    "checkAnimationUnsnap" : {
      "int" : 0
    },
    "checkFullScreen" : {
      "int" : 0
    },
    "cornerSnapAreaSize" : {
      "float" : 20
    },
    "cursorGestures" : {
      "int" : 0
    },
    "curtainChangeSize" : {
      "int" : 0
    },
    "disabledApps" : {

    },
    "dropPaneLocation" : {
      "int" : 0
    },
    "dropPaneModifier" : {
      "int" : 0
    },
    "enhancedUI" : {
      "int" : 0
    },
    "footprintAlpha" : {
      "float" : 0.30000001192092896
    },
    "footprintBorderWidth" : {
      "float" : 2
    },
    "footprintColor" : {

    },
    "footprintFade" : {
      "int" : 0
    },
    "gapSize" : {
      "float" : 0
    },
    "gestures" : {

    },
    "helperRelaunch" : {
      "int" : 3
    },
    "hideMenubarIcon" : {
      "bool" : false
    },
    "hideReticleRectangles" : {
      "bool" : false
    },
    "hookshotStatusIcon" : {
      "int" : 2
    },
    "iCloudSync" : {
      "int" : 0
    },
    "ignoredSnapAreas" : {
      "int" : 0
    },
    "landscapeSnapAreas" : {

    },
    "launchOnLogin" : {
      "bool" : true
    },
    "longReticleSpec" : {

    },
    "longshotDist" : {
      "float" : 200
    },
    "mainReticleSpec" : {

    },
    "manualSpecs" : {

    },
    "maximizeAcrossDisplays" : {
      "int" : 0
    },
    "minimumWindowHeight" : {
      "float" : 0
    },
    "minimumWindowWidth" : {
      "float" : 0
    },
    "missionControlDragging" : {
      "int" : 0
    },
    "moveCursorAcrossDisplays" : {
      "int" : 0
    },
    "multiWindowAllDisplays" : {
      "int" : 0
    },
    "nsClickListen" : {
      "int" : 0
    },
    "nsEventListen" : {
      "int" : 0
    },
    "obtainWindowOnClick" : {
      "int" : 0
    },
    "portraitSnapAreas" : {

    },
    "quickActionMinDist" : {
      "float" : 10
    },
    "quickActions" : {
      "int" : 0
    },
    "quickActionTimeout" : {
      "double" : 1
    },
    "relaunchOpensMenu" : {
      "bool" : false
    },
    "repeatedMaximizeRestores" : {
      "int" : 0
    },
    "resizeOnDirectionalMove" : {
      "bool" : false
    },
    "restartOnWakeDelay" : {
      "float" : 0
    },
    "restToOneTouches" : {
      "int" : 0
    },
    "reticle" : {
      "int" : 2
    },
    "reticleColor" : {
      "string" : "{\"red\":0.80000000000000004,\"alpha\":0.5,\"blue\":0.20000000000000001,\"green\":0.29999999999999999}"
    },
    "reticleDisplayMinDist" : {
      "float" : 0
    },
    "reticleMouseButton" : {
      "int" : 0
    },
    "reticleSize" : {
      "int" : 12
    },
    "revealDesktopWidth" : {
      "float" : 200
    },
    "safeAreaSize" : {
      "int" : 35
    },
    "saveLayoutShortcut" : {

    },
    "screenEdgeGapBottom" : {
      "float" : 0
    },
    "screenEdgeGapLeft" : {
      "float" : 0
    },
    "screenEdgeGapRight" : {
      "float" : 0
    },
    "screenEdgeGapsOnMainScreenOnly" : {
      "bool" : false
    },
    "screenEdgeGapTop" : {
      "float" : 0
    },
    "shortEdgeSnapAreaSize" : {
      "float" : 145
    },
    "showAllActionsInMenu" : {
      "int" : 0
    },
    "sixthsSnapArea" : {
      "int" : 0
    },
    "sizeOffset" : {
      "float" : 0
    },
    "snapEdgeMarginBottom" : {
      "float" : 5
    },
    "snapEdgeMarginLeft" : {
      "float" : 5
    },
    "snapEdgeMarginRight" : {
      "float" : 5
    },
    "snapEdgeMarginTop" : {
      "float" : 5
    },
    "snapModifiers" : {
      "int" : 0
    },
    "snapPanelActions" : {

    },
    "specifiedHeight" : {
      "float" : 1050
    },
    "specifiedWidth" : {
      "float" : 1680
    },
    "stageSize" : {
      "float" : 190
    },
    "stashClearedByOtherActions" : {
      "int" : 0
    },
    "stashClearScreenEdge" : {
      "int" : 0
    },
    "stashCursorBoxWidth" : {
      "float" : 1
    },
    "stashEnabled" : {
      "int" : 0
    },
    "stashHideCursorWindow" : {
      "int" : 0
    },
    "stashHideTime" : {
      "double" : 0.29999999999999999
    },
    "stashHideUsingMod" : {
      "int" : 0
    },
    "stashInMenu" : {
      "int" : 0
    },
    "stashMultipleStagger" : {
      "int" : 0
    },
    "stashShowTime" : {
      "double" : 0.29999999999999999
    },
    "stashShowUsingMod" : {
      "int" : 0
    },
    "stashTabs" : {
      "int" : 0
    },
    "stashVisibleWidth" : {
      "float" : 1
    },
    "subsequentExecutionMode" : {
      "int" : 0
    },
    "SUEnableAutomaticChecks" : {
      "bool" : true
    },
    "throwFrontmost" : {
      "int" : 0
    },
    "todo" : {
      "int" : 0
    },
    "todoApplication" : {

    },
    "todoMode" : {
      "bool" : false
    },
    "todoSide" : {
      "int" : 1
    },
    "todoSidebarWidth" : {
      "float" : 400
    },
    "togggleTodoShortcut" : {

    },
    "traverseSingleScreen" : {
      "int" : 0
    },
    "unsnapRestore" : {
      "int" : 0
    },
    "unstashOnTerminate" : {
      "int" : 0
    },
    "windowSnapping" : {
      "int" : 0
    },
    "windowStopVelocity" : {
      "float" : 3
    },
    "windowToFront" : {
      "int" : 0
    },
    "winModFlags" : {
      "int" : 0
    }
  },
  "shortcuts" : {
    "bottomHalf" : {
      "keyCode" : 125,
      "modifierFlags" : 786432
    },
    "bottomLeft" : {
      "keyCode" : 38,
      "modifierFlags" : 786432
    },
    "bottomRight" : {
      "keyCode" : 40,
      "modifierFlags" : 786432
    },
    "center" : {
      "keyCode" : 8,
      "modifierFlags" : 786432
    },
    "centerThird" : {
      "keyCode" : 3,
      "modifierFlags" : 786432
    },
    "firstThird" : {
      "keyCode" : 2,
      "modifierFlags" : 786432
    },
    "firstTwoThirds" : {
      "keyCode" : 14,
      "modifierFlags" : 786432
    },
    "larger" : {
      "keyCode" : 24,
      "modifierFlags" : 786432
    },
    "lastThird" : {
      "keyCode" : 5,
      "modifierFlags" : 786432
    },
    "lastTwoThirds" : {
      "keyCode" : 17,
      "modifierFlags" : 786432
    },
    "leftHalf" : {
      "keyCode" : 123,
      "modifierFlags" : 786432
    },
    "maximize" : {
      "keyCode" : 36,
      "modifierFlags" : 786432
    },
    "maximizeHeight" : {
      "keyCode" : 126,
      "modifierFlags" : 917504
    },
    "nextDisplay" : {
      "keyCode" : 124,
      "modifierFlags" : 1835008
    },
    "previousDisplay" : {
      "keyCode" : 123,
      "modifierFlags" : 1835008
    },
    "restore" : {
      "keyCode" : 51,
      "modifierFlags" : 786432
    },
    "rightHalf" : {
      "keyCode" : 124,
      "modifierFlags" : 786432
    },
    "smaller" : {
      "keyCode" : 27,
      "modifierFlags" : 786432
    },
    "topHalf" : {
      "keyCode" : 126,
      "modifierFlags" : 786432
    },
    "topLeft" : {
      "keyCode" : 32,
      "modifierFlags" : 786432
    },
    "topRight" : {
      "keyCode" : 34,
      "modifierFlags" : 786432
    }
  },
  "timestamp" : 684947447.98757994,
  "version" : "121"
}

tashima42 avatar Sep 15 '22 15:09 tashima42

Thanks for reporting with details. Can you try reverting back to v2.4.7 and see if it works for you there?

https://rectangleapp.com/pro/versions

rxhanson avatar Sep 15 '22 15:09 rxhanson

After downgrade all work again. Throw function stopped work only on main monitor (external monitor works fine), bug detected after unlock mac.

Restart rectangle pro doesn't help, only downgrade or restart macbook.

yehorh avatar Sep 15 '22 19:09 yehorh

There's a regression in the latest version that appears only for specific displays (which is why I didn't catch it prior to release). I have also noticed a bug related to notifications, where the window throw doesn't work if you have macOS notifications displayed. I'll be pushing out another release soon, which will hopefully fix both of those scenarios.

rxhanson avatar Sep 15 '22 20:09 rxhanson

For me this issue happens while there is a native notification on screen. After the notification is dismissed, window throwing works again.

Aleuck avatar Sep 15 '22 21:09 Aleuck

@rxhanson I updated to 2.6 (122) on MacOS 12.6 and am seeing the following error when trying to window throw on the "main" display:

Unable to obtain the accessibility element with the specified attribute at mouse location

Grabbing and throwing with ctrl+cmd works on "extended" displays.

For some reason Sublime text works on the main display, but interestingly doesn't show up in the logs with Window under cursor fallback matched: [...], onScreen: Optional(true)) when it grabs, unlike when it's working on the extended displays.

devtrue avatar Sep 23 '22 05:09 devtrue

@devtrue Thanks for reporting. Have you restarted your Mac since you updated to 12.6? For some reason macOS appears to be a little flaky with regard to accessibility (window API) until a restart.

rxhanson avatar Sep 23 '22 06:09 rxhanson

@rxhanson Rebooted and no luck. After messing around a bit, I found there is a small 5 px edge that I can grab on all windows.

devtrue avatar Sep 23 '22 18:09 devtrue

@devtrue thanks for trying that out and posting back. I’ve made some additional changes in v2.6.2 that I think might have fixed things. You can update within the app or at https://rectangleapp.com/pro/versions

Let me know how that one goes.

rxhanson avatar Sep 23 '22 18:09 rxhanson

@rxhanson Updated to 2.6.2 (124) and it's working as expected with no reboot needed. Thanks!

devtrue avatar Sep 23 '22 19:09 devtrue