make this focus shit not buggy again..

This commit is contained in:
Dana Jansens 2003-02-04 00:45:27 +00:00
parent 1da8531a7b
commit 4ddb8181c2
2 changed files with 7 additions and 3 deletions

View file

@ -158,7 +158,7 @@ def _focus_stacked_ungrab(data):
client = ob.openbox.findClient(_cyc_w)
if client:
data.client = client
_focused(data) # resort the list as appropriate
#_focused(data) # resort the list as appropriate
if cycle_raise:
ob.openbox.screen(data.screen).raiseWindow(client)

View file

@ -360,7 +360,11 @@ Client *Openbox::findClient(Window window)
void Openbox::setFocusedClient(Client *c)
{
if (c == _focused_client) return;
// sometimes this is called with the already-focused window, this is
// important for the python scripts to work (eg, c = 0 twice, or for the
// cycling list, it relies on this behavior. don't just return if its already
// set as focused
assert(_focused_screen);
// uninstall the old colormap