window placement #161
Replies: 8 comments
-
Thanks for the suggestion! However, I am not really sure about this. On the one hand side, I understand that it would be more intuitive (and faster as it will require less mouse travel to interact with the newly opened app). However, on the other hand there are some difficulties:
What do you think? |
Beta Was this translation helpful? Give feedback.
-
Thanks for looking at it! Using xdotool window placement after starting an app works very well, don't know about Wayland but under X-gnome40 working very well with Thanks again for looking, think this would make a very intuitive user desktop experience. |
Beta Was this translation helpful? Give feedback.
-
I played around a bit more and discovered a pretty reliable solution! Fly-Pie now checks whether a new window is opened within one second after an action has been executed. If it detects a new window, it checks whether the new window got focused (i.e. it did not open in the background). If this is the case it centers the window below the pointer (clamped to the current monitor bounds so that nothing goes off-screen). If this does not happen within one second, nothing is done. You can easily test the new behavior by installing the current development version of Fly-Pie! (Feel free to ask is anything is unclear in this guide). I would really appreciate some feedback as there might be some weird behavior with apps messing around with window positioning on their own... |
Beta Was this translation helpful? Give feedback.
-
Just tried and works very very well!!! Really cool! |
Beta Was this translation helpful? Give feedback.
-
I encountered some applications which take longer than one second to open a window (Java based programs may also take a bit longer, I guess). If you want to, you could increase the timeout (line 714 in |
Beta Was this translation helpful? Give feedback.
-
Bingo! With timeout at 2000ms all apps open at mouse pointers location and indeed storing the mouse pointers location is a good idea, when I move it within the 2 seconds window follows pointer location. (one could see that as feature instead as bug ;-) |
Beta Was this translation helpful? Give feedback.
-
Great that it works for you! I just increased the timeout to 2000ms as you suggested and stored the pointer location. Just do a Thanks again for this suggestion, I already love this behavior! |
Beta Was this translation helpful? Give feedback.
-
Working awesome! Thanks for implementing!!! |
Beta Was this translation helpful? Give feedback.
-
Is it possible to add window placement request to the started application like with xdotool so it will be placed on the screen where it was started with fly-pie?
In my case I use mouse gesture to start fly-pie (which is placed on the screen where I make the gesture) and it would be very intuitive if the started application would be placed on that same location.
Beta Was this translation helpful? Give feedback.
All reactions