ivanova Apprentice
Joined: 12 Apr 2004 Posts: 158 Location: South Africa
|
Posted: Thu Aug 05, 2004 10:50 am Post subject: openbox, fluxbox and gdesklets (strange behaviour) |
|
|
I tried openbox out.
I use the following script to open some space for a few gdesklet apps I use on the desktop. This works if I start the gdesklets before I start this script. But I am unable to move the gdesklets after I start the script - it won't go in the space. In fluxbox this works fine no problems.
Is there something I can change in the window properties to make openbox move the gdesklets over the space? Why the difference between fluxbox and openbox?
Thanks!
Code: | #!/usr/bin/env python
left = 0
right = 0
up = 60
down = 0
xpm = [
"1 1 1 1",
" c None",
" "
]
import gtk
class Space:
def delete_event(self, widget, event, data=None):
return gtk.FALSE
def destroy(self, widget, data=None):
gtk.main_quit()
def __init__(self):
win = gtk.Window(gtk.WINDOW_TOPLEVEL)
win.connect("delete_event", self.delete_event)
win.connect("destroy", self.destroy)
win.stick()
win.show()
xwin = win.window
xwin.property_change("_NET_WM_STRUT", "CARDINAL", 32,
gtk.gdk.PROP_MODE_REPLACE, [left, right, up, down])
xwin.property_change("_NET_WM_WINDOW_TYPE", "ATOM", 32,
gtk.gdk.PROP_MODE_REPLACE,
["_NET_WM_WINDOW_TYPE_DESKTOP"])
xwin.move_resize(0, 0, 16, 16)
xwin.set_back_pixmap(None, False)
style = win.get_style()
pixmap, mask = gtk.create_pixmap_from_xpm_d(xwin, style.bg[gtk.STATE_NORMAL], xpm)
win.shape_combine_mask(mask, 0, 0)
def main(self):
gtk.main()
if __name__ == "__main__":
Space().main() |
_________________ Ladies and Gentlemen... we are floating in space. |
|