gdesklets doesn't use the widget layer in compiz for it's windows

Bug #330920 reported by idefix
4
Affects Status Importance Assigned to Milestone
gDesklets
Triaged
Wishlist
gDesklets Core Team

Bug Description

gDesklets doesn't make use of the widget layer in Compiz.

The reason is that it doesn't flag the windows as being widgets - if it did then Compiz would pick this up and treat them as such.

I know that gDesklets need to be able to work without a compositing window manager, but this is just a property on the window, that currently only Compiz uses and as such should not adversely effect it's behaviour.

For compiz to see this, you need to set the _COMPIZ_WIDGET window property. This can be done without any adverse effect on it's behaviour when not using Compiz.

The code to do so is relatively simple - for each widget you need to do the following:

desklet_window.window.property_change("_COMPIZ_WIDGET",
                gtk.gdk.SELECTION_TYPE_WINDOW, 32, gtk.gdk.PROP_MODE_REPLACE, (True,))

Revision history for this message
Bjoern Koch (h.humpel) wrote :

Can someone confirm that this fix or work-around is working with and without compiz ?

Changed in gdesklets:
assignee: nobody → gdesklets-core-team
importance: Undecided → Wishlist
status: New → Triaged
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.