When using a metacity theme with rounded corners, corners are not transparent

Bug #260771 reported by Christoph Langner
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Shutter
Fix Released
Medium
Mario Kemper (Romario)

Bug Description

When you use a metacity theme with rounded corners and you make a screenshot of a window, the corners are not transparent. You can see e.g. your desktop background instead of a transparent area. Compare the behaviour with the gnome screenshot tool. It doesn't matter if you use compiz or metacity as window manager.

Revision history for this message
Christoph Langner (chrissss) wrote :
Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote :

I'll have a look, thanks for your bug report.

Changed in gscrot:
assignee: nobody → mario-kemper
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote :

No real solution yet, still working on it...

We surely have to use this module to deal with it:
http://search.cpan.org/~smccam/X11-Protocol-0.56/Protocol/Ext/SHAPE.pm

Changed in gscrot:
milestone: none → 0.70
status: Confirmed → In Progress
Changed in gscrot:
status: In Progress → Fix Committed
Changed in shutter:
status: Fix Committed → Fix Released
Revision history for this message
Christoph Langner (chrissss) wrote :

I reopen here. I installes shutter 0.7

§ dpkg -l shutter | grep ii
ii shutter 0.70~ppa11

When i make a screenshot of a window (i'm using shiki as my desktop theme here) i see the gray background from my wallpaper but no transparency.

Changed in shutter:
status: Fix Released → New
Revision history for this message
Christoph Langner (chrissss) wrote :

A Screenshot to explain this better. The marked corner should be transparent.

Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote :

Are you using compiz?

Revision history for this message
Christoph Langner (chrissss) wrote :

> Are you using compiz?

I tried metacity and compiz. It doesn't make a difference.

Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote :

And you are using png as filetype?

Revision history for this message
Christoph Langner (chrissss) wrote :

Yes.

Revision history for this message
Vadim Peretokin (vperetokin) wrote : Re: [Bug 260771] Re: When using a metacity theme with rounded corners, corners are not transparent

It does happen sometimes here but I can't find a reproducible way yet

Revision history for this message
Vadim Peretokin (vperetokin) wrote :

found another case, see top-left on this one:

http://www.ubuntu-pics.de/bild/10613/screenshot_100_508__2o3qVg.png

(stats a different site)

Revision history for this message
Christoph Langner (chrissss) wrote :

Ah, i think i found the answer. Start metacity before you take a screenshot

$ metacity --replace &
$ shutter

-> Corners are transparent

Switch to metacity AFTER you started shutter

$ compiz --replace &
$ shutter
$ metacity --replace &

-> And you'll get opaque window corners

Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote :

Oh, this is correct.
Shutter initializes the X11 protocol connection on startup. At this point the XSHAPE extension is loaded as well. Maybe we can catch a signal when wm was changed, so we can init X11 again.

Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote :

@Christoph: Do you agree that this would be a valid solution or is anything else not working here?

Changed in shutter:
status: New → Confirmed
Revision history for this message
Christoph Langner (chrissss) wrote :

@Mario: Yep, that would be a valid solution. For me it's quite important to be able to take screenshots with transparent corners since i have to include them into documentations or reports. But i also like desktop effects while working. So i switch between metacity and compiz to get the transparent corners, but it would be easier not to need restart shutter too :)

Changed in shutter:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.