3 def find_panel_window():
4 root
= gtk
.gdk
.get_default_root_window()
5 wids
= root
.property_get('_NET_CLIENT_LIST')[2]
6 wl
= [gtk
.gdk
.window_foreign_new(long(w
)) for w
in wids
]
9 wclass
= w
.property_get('WM_CLASS')[2].split('\0')[:2]
10 if wclass
[0] == 'ROX-Panel':
15 def get_panel_orientation():
16 panel
= find_panel_window()
18 panelx
, panely
= panel
.get_root_origin()
19 rect
= panel
.get_frame_extents()
20 panelw
, panelh
= rect
.width
, rect
.height