Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mouse/interaction with recording area on i3 #52

Closed
djcas9 opened this issue Dec 6, 2016 · 26 comments
Closed

mouse/interaction with recording area on i3 #52

djcas9 opened this issue Dec 6, 2016 · 26 comments

Comments

@djcas9
Copy link

djcas9 commented Dec 6, 2016

Example: Recording a form and clicking the submit button is not possible outside of using the keyboard.

Any plans to support something like this. I'm currently reading over the code to see how complex it would be to contribute.

Thanks for a great project.

@phw
Copy link
Owner

phw commented Dec 6, 2016

Do you mean when clicking into the recording area does not allow you to interact with the application behind Peek? This is absolutely supposed to work, if not it is a bug.

At issue #12 some people are reporting this does not work under i3. But it could also be related to the Gtk version used.

What desktop environment and window manager are you using? Which version of Gtk?

@djcas9
Copy link
Author

djcas9 commented Dec 6, 2016

@phw ah, makes sense. I am using i3. I'll look into it and see if I can figure it out and submit a PR.

@djcas9
Copy link
Author

djcas9 commented Dec 6, 2016

@phw gtk 3.22.4-1

@ibrahima
Copy link

ibrahima commented Dec 6, 2016

I'm experiencing this with AwesomeWM+Compton, on 3.18.9-1ubuntu3.1 (Ubuntu 16.04, fully patched).

My suspicion is that the way tiling managers work and/or the interaction with Compton is preventing the clicks from going through to the background application. There might be particular window state/flags that makes it work for you; with Awesome, if I start recording, and then send the Peek window to the background, I can interact with the application that I want to record, but if it's supposed to actually click through to the application behind it then that might require specific support for tiling WMs. For Awesome, I tried to set up rules for the Peek application so that it is floating but not always on top, but I seem to have done something wrong, but if I manually send it to the background then I can interact while it's recording that part of the screen.

@djcas9
Copy link
Author

djcas9 commented Dec 8, 2016

@phw had a chance to poke around, and it will take custom work to get it to work with i3 correctly (a lot I think). I'm assuming it will be custom for each tiling WM.

Anyhow, will see if I can get a patch for i3 working at least.

@dmsmidt
Copy link

dmsmidt commented Dec 9, 2016

@mephux a patch for i3 would be great.
But would be even better if it isn't tiling WM specific.

I use: gtk3 3.22.4-1 and i3-wm 4.13-1.

@djcas9
Copy link
Author

djcas9 commented Jan 9, 2017

@phw @ibrahima @dmsmidt I looked at this for a few days. No idea why it's now allowing it to pass through. I debugged everything I could think of. Super confused on this one. :-\

@djcas9
Copy link
Author

djcas9 commented Jan 9, 2017

to further elaborate compton is likely the problem but I couldn't pin it down.

@phw
Copy link
Owner

phw commented Jan 12, 2017

@mephux Thanks a lot for this investigation, very much appreciated. But looks like there is not much I can do, if it needs probably be addressed in Gtk and/or i3

To be honest tiling window managers are not really the target for Peek. I am happy if it works there, but I probably won't invest time debugging and fixing it myself. I will accept patches, though :)

Closing this for now, feel free to reopen if there is some chance we can get this fixed here.

@phw phw closed this as completed Jan 12, 2017
@dmsmidt
Copy link

dmsmidt commented Jan 12, 2017

@mephux thanks for your time, @phw a pitty we can't get this working. Could you mention the known limitations on the project page?

@phw
Copy link
Owner

phw commented Apr 24, 2017

I was playing with i3 and sway a bit and also tried it there (actually quite like i3, even though tiling window managers are not my thing in general). Found out this was reported to i3 a few days back: i3/i3#2742 . Fact is that i3 does not support the shape extension, and this was left out somewhat intentional as it is not a typical use case for tiling window managers. Maybe they will consider implementing this :)

On Sway it is a different story. There is some click through behavior, but the clicks are triggered completely off and moving & resizing the peek window is nearly impossible (the entire handling of floating windows seems to be buggy, but sway is work in progress anyway)

@phw phw changed the title mouse/interaction with recording area mouse/interaction with recording area on i3 Apr 24, 2017
@phw
Copy link
Owner

phw commented Jun 13, 2017

Also tracked for Awesome WM at awesomeWM/awesome#1827

@pciavald
Copy link

pciavald commented Jul 7, 2017

Would be interested in this feature too. Switching to another software for now, but i'll gladly come back if the thread is updated.

@erayaydin
Copy link

I'm also interesting with this feature. For now, you can use scratchpad. Open peek and set location after starting peek, hide peek to scratchpad. When you finished recording you can get 'peek' from scratchpad. It will record 👍

But there should be a nice way for recording i3 window with peek.

@tmccombs
Copy link

Peek is the best gif screen recorder I have found. I wish it worked better with i3.

@grepsedawk
Copy link

So the way to do it is to make both peek and the window you're trying to capture into "floating mode" ($mod + shift + space is default).
Put peek just above the window you want to capture and fire away...
It's a pain but better than nothing:
image

NOTE: compton or equal must be running.

@MattMcMurray
Copy link

Furthering @pachonk's point: Stacked ($mod+s) and tabbed ($mod+w) mode also work

@grepsedawk
Copy link

@MattMcMurray Nice tip, that's definitely easier than moving all the windows around like an ancient windowed WM

@nberrios
Copy link

nberrios commented Feb 1, 2018

@pachonk yer a wizard

@grepsedawk
Copy link

@nberrios Thanks, I had to do like 3 hours of research over something so small to finally find that... Lol

@AndreasBackx
Copy link

Unfortunately if you want to record something like polybar, you cannot easily set it to floating mode.

@salmanulfarzy
Copy link

i3/i3#3514 might solve this.

@rassie
Copy link

rassie commented Dec 9, 2019

I can confirm that this is actually solved. i3 4.17.1, peek 1.4.0, no compton or scratchpad needed.

@akhiljalagam
Copy link

I can confirm that this is actually solved. i3 4.17.1, peek 1.4.0, no compton or scratchpad needed.

worked for me..... 👍

@jc00ke
Copy link

jc00ke commented Jan 28, 2020

Same here, thank you!

@tdakhran
Copy link

tdakhran commented Nov 3, 2020

I can confirm that this is actually solved. i3 4.17.1, peek 1.4.0, no compton or scratchpad needed.

Works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests