📂 A Synthetic X11 Drag&drop "protocol" was Implemented, but... #92
Replies: 4 comments 3 replies
-
output.mp4it is working |
Beta Was this translation helpful? Give feedback.
-
Additionally, I'd like to notice that it's eay to check which windows are overlaping and ignore them via something like: def get_windows(window):
try:
yield window
for child_window in window.query_tree().children:
yield from get_windows(child_window)
except error.BadWindow as e: # result of query_tree()
return
...
for win in get_windows(root):
# ... via checking if wins after a condition like |
Beta Was this translation helpful? Give feedback.
-
for god's sake! why it has to be so complicated to run a QT app in another thread besides main... |
Beta Was this translation helpful? Give feedback.
-
* dropped |
Beta Was this translation helpful? Give feedback.
-
Intro
In an attempt to be as much inclusive as of the fact: that this is going to be used across multiple distridutions of linux, and for the sake of (my sanity and) future portability across different OS, terminals and display servers such as wayland (by users who might want to do so), I took a slightly unorthodox aprroach to the problem... a simple, intuitive but incomplete one! (Addressing Issue 21)
Approach
I'll start by saying: there's a good reason why dragon exists; it's not as easy as it sounds to syntheticly\virtually perform drag and drop (especially when you try to be as much inclusive as possible [...]). After alot of pitfalls and some deep research, I literally just ended up using a
pyside6
-gui that appears the momment you are about to drop something in your (script-running)-terminal + for the TUI-to-GUI operation: a fakeQDrag
signal-event situation as seen and demonstrated bellow.!!!! Please consider trying it and telling me if it works for you, I need your feedback! Code is here bellow:
👉👉👉👉 Click to expand code
Known Issues
Research
Outro
First of all thanks for reading so far. Second of all, this is the best I can do without any donation, considering the situation in which I am. So far I had only one donation from a single person, to which I am really greatfull and wish the best for him or her for giving me those special 8$. So, if you don't want to support me economically, at least consider responding to this post by telling me if the code is working for you or upvote this post so it will get more attention. I'm programming because I love to. And again thanks... for your support and love ⭐
Monero Address: 897ehhSQJQpGF7tYDhQM51jiX7nnHmzuYAW4q8JGwJxu8JKXvaK6AivCzatuJxnifjZ2qy98ks2g2PhmTaYCMMta2Ga2LJx
Beta Was this translation helpful? Give feedback.
All reactions