[GTKUI] Use get_window for GdkWindow instead of attribute

This commit is contained in:
Calum Lind 2016-11-19 10:32:31 +00:00
parent b8135617ae
commit 674610ef7d
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ class MainWindow(component.Component):
""" """
if wnck: if wnck:
self.screen.force_update() self.screen.force_update()
win = wnck.window_get(self.window.window.xid) win = wnck.window_get(self.window.get_window().xid)
if win: if win:
active_wksp = win.get_screen().get_active_workspace() active_wksp = win.get_screen().get_active_workspace()
if active_wksp: if active_wksp: