Opened 16 years ago
Closed 14 years ago
#2988 closed bug (fixed)
Screenshot does not obey its mouse pointer option
Reported by: | Adek336 | Owned by: | stippi |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Applications/Screenshot | Version: | R1/Development |
Keywords: | Cc: | WPJvanderMeer@… | |
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
Screenshot always captures the mouse and he doesn't wait the time you set in his preferences. He also always takes photo of whole screen, even when "take active window" is selected.
Attachments (1)
Change History (19)
comment:1 by , 16 years ago
Component: | Applications → Applications/Screenshot |
---|---|
Owner: | changed from | to
comment:2 by , 16 years ago
comment:3 by , 16 years ago
Blocked By: | 2997 added |
---|
comment:4 by , 16 years ago
The fullscreen problem could be because it thinks the wrong window has focus (Tracker's desktop window). At least I have observed some flakieness with regards to picking the right focus window when I checked out the app. I was using focus follows mouse.
As for the cursor, I think I know what the problem is...
comment:5 by , 16 years ago
<snip> The fullscreen problem could be because it thinks the wrong window has focus (Tracker's desktop window). At least I have observed some flakiness with regards to picking the right focus window when I checked out the app. I was using focus follows mouse. </snip>
I wonder what one would expect while using 'focus follows mouse', it takes a screenshot of the 'active' window?
comment:6 by , 16 years ago
[quote]- Screenshot takes always the full screen - could not reproduce with HEAD, please give more info
- Does not respect the timeout - could not reproduce with HEAD, please give more infoquote
Quite interestingly, I was pressing the "Save" button thinking it was the "Take snapshot" button :-) So after all, these two problems didn't happen.
comment:7 by , 15 years ago
Description: | modified (diff) |
---|---|
Summary: | Screenshot does not obey preferences → Screenshot does not obey its mouse pointer option |
From Adek's last comment, I understand it's only the mouse pointer option, that's not respected. I can confirm this using the nvidia driver in hrev34203.
Changed ticket title accordingly and stroke through wrong part of the original description.
comment:8 by , 15 years ago
I have created a simple patch that solves this bug, but since it doesn't deal with the root problem it could be classified as an ugly hack. I will submit the patch anyway, and leave it up to whoever is in charge to decide whether or not to apply it. I won't be offended if it isn't used :)
follow-up: 11 comment:9 by , 15 years ago
Version: | R1/pre-alpha1 → R1/Development |
---|
It's actually not a big hack, at least I don't see a better way of doing this easily.
However, there is one problem, as it does not take the current cursor status into account; if it's currently not visible, it could be for and after the screenshot.
comment:10 by , 15 years ago
Component: | Applications/Screenshot → Servers/app_server |
---|---|
Owner: | changed from | to
comment:11 by , 15 years ago
Replying to axeld:
However, there is one problem, as it does not take the current cursor status into account; if it's currently not visible, it could be for and after the screenshot.
OK, I will fix that.
I have one question: since the drawCursor parameter of the DrawingEngine::ReadBitmap() function does not seem to do anything at the moment, is it better to remove it from the function call, or do you prefer to leave it like it is so the API doesn't change?
comment:12 by , 15 years ago
Cc: | added |
---|
Oh, yeah, I forgot: what about ticket #2997, which basically describes the same problem.
by , 15 years ago
Attachment: | appserver-wim.patch added |
---|
Patch that hides the cursor before calling DrawingEngine::ReadBitmap()
comment:14 by , 15 years ago
Thanks. Sorry, though, my first evaluation was wrong - I just looked into DrawingEngine::ReadBitmap(), and it already contains code that looks like it should work. In other words, one should rather fix what's wrong there than to work around it like this.
comment:15 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Since Stephan wrote this code, maybe he has some idea.
comment:16 by , 15 years ago
Yes, I've already "fixed" this code a long time ago, but there was one remaining issue, which was really strange and I couldn't resolve it, and I never commited the code. I don't remember which computer I made the changes on, but I can find out as soon as next Friday... unless it's lost. IIRC, the problem with the code is that it inserts the mouse pointer in the wrong buffer, but maybe there was more. When the app_server works in double buffered mode, the back buffer should not actually contain any mouse pointer, but one still wants to use the front buffer to capture BDirectWindows.
comment:17 by , 14 years ago
Blocked By: | 2997 removed |
---|---|
Component: | Servers/app_server → Applications/Screenshot |
This seems to be 3 different issues here:
Best regards,
Karsten