update the client list's order after doing a stacked cycle
This commit is contained in:
parent
4de57876e3
commit
046df3e746
1 changed files with 8 additions and 3 deletions
|
@ -90,8 +90,11 @@ def _focused(data):
|
||||||
global _doing_stacked
|
global _doing_stacked
|
||||||
global _cyc_w
|
global _cyc_w
|
||||||
|
|
||||||
|
print "FOCUSED " + str(data.client)
|
||||||
|
|
||||||
if data.client:
|
if data.client:
|
||||||
if not _doing_stacked: # only move the window when we're not cycling
|
if not _doing_stacked: # only move the window when we're not cycling
|
||||||
|
print "HI"
|
||||||
win = data.client.window()
|
win = data.client.window()
|
||||||
# move it to the top
|
# move it to the top
|
||||||
_clients.remove(win)
|
_clients.remove(win)
|
||||||
|
@ -152,9 +155,11 @@ def _focus_stacked_ungrab(data):
|
||||||
ob.kungrab()
|
ob.kungrab()
|
||||||
ob.mungrab()
|
ob.mungrab()
|
||||||
_doing_stacked = 0;
|
_doing_stacked = 0;
|
||||||
if cycle_raise:
|
|
||||||
client = ob.openbox.findClient(_cyc_w)
|
client = ob.openbox.findClient(_cyc_w)
|
||||||
if client:
|
if client:
|
||||||
|
data.client = client
|
||||||
|
_focused(data) # resort the list as appropriate
|
||||||
|
if cycle_raise:
|
||||||
ob.openbox.screen(data.screen).raiseWindow(client)
|
ob.openbox.screen(data.screen).raiseWindow(client)
|
||||||
|
|
||||||
_list_widget = 0
|
_list_widget = 0
|
||||||
|
|
Loading…
Reference in a new issue