sticky-window-snapping icon indicating copy to clipboard operation
sticky-window-snapping copied to clipboard

Across desktops...

Open jaggzh opened this issue 4 years ago • 2 comments

So, I wanted to make this work across desktops. Commenting out one line didn't work: // if (c.desktop !== workspace.currentDesktop && !c.onAllDesktops) continue; I had to also comment out the c.screen line: // if (c.screen !== client.screen) continue;

I was going to add this as an option to a fork, but wanted to ask about the above change (which would be made into a condition of course), first; annnd, I didn't want to waste my time unless you thought it might be an acceptable PR if done properly.

jaggzh avatar May 06 '21 22:05 jaggzh

Just for clarification: You suggest an option that the script behaves as if all windows were on the same virtual desktop? So, for example, when there is a window covering the left half of the screen on virtual desktop 1 and a second window covering the right half of the screen on virtual desktop 2, then resizing one of the windows at the edge in the middle of the screen should affect the other window?

Sounds doable, however, I wonder about the use case.

Flupp avatar May 07 '21 11:05 Flupp

Correct. Probably default off. I often will drag windows to each half of the screen, with, say, some reference window, on one side, pinned across desktops (a browser page or, frequently, some video found while I work).

To the other side are other project windows, each on their own desktop, so I now am able to have them all size along with the pinned one.

On Fri, May 7, 2021, 4:35 AM Toni Dietze @.***> wrote:

Just for clarification: You suggest an option that the script behaves as if all windows were on the same virtual desktop? So, for example, when there is a window covering the left half of the screen on virtual desktop 1 and a second window covering the right half of the screen on virtual desktop 2, then resizing one of the windows at the edge in the middle of the screen should affect the other window?

Sounds doable, however, I wonder about the use case.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Flupp/sticky-window-snapping/issues/12#issuecomment-834293038, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE3AV7JWFR4US2KYX54AU4LTMPGBJANCNFSM44IBW4QQ .

jaggzh avatar May 08 '21 06:05 jaggzh