[Sharing] Draggable jit.windows
Along the lines of draggable patches, here's a patch which lets you drag jit.windows by clicking anywhere in them, so it lets you have a title-bar-less jit.window and still be able to move it. You can turn the border on to resize it, then off to have it be just the image or movie.
The dragging doesn't "track" as well as using the title bar, especially with a movie playing, but it works... drag from the middle for best results. Also, when you go fullscreen, the dragging is disabled.
It's been really handy while developing patches---you can get it out of the way a lot quicker than using the title bar, which helps a lot if you use floating windows that always seem to be in the way...
Enjoy!
Sorry, you're solution wasn't working for me (very slow windows dragging), here's what's working for me :
Also, there should be solution without mousestate but I haven't got the time to investigate
Léo
Hi, that one looks the same, did you make a change somewhere?
Hey, I just optimized the subpatch to drag the window from anywhere using the idlemouse position instead the mouse position, because in case of Mac OS, when you drag a window, the mouse often moves faster than the window, so this made the patch move the window faster than the mouse making it difficult for precise position, so I made the subpatch be more precise if Idle mouse is on. Also I added a way for it to don't go beyond the screen, that way it would clip to the border of the screen always:
PD: I just realized that this was posted/shared 10 years ago, lol... I was just looking for knowing if this can be done... thanks... :D
Long Live Max MSP!