focus list: Fix a couple of glitches with outline window

- Hide the outline window on Escape from focus list
- Hide the outline window when cycling to an offscreen window
This commit is contained in:
Kim Woelders 2022-03-31 10:59:24 +02:00
parent 44c01a009b
commit 956eb86c4d
1 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
/* /*
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
* Copyright (C) 2004-2021 Kim Woelders * Copyright (C) 2004-2022 Kim Woelders
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to * of this software and associated documentation files (the "Software"), to
@ -411,7 +411,10 @@ WarpFocus(int delta)
WarpFocusShow(); WarpFocusShow();
if (!EwinIsOnScreen(ewin)) if (!EwinIsOnScreen(ewin))
{
WarpShapeDraw(NULL);
return; return;
}
if (Conf.warplist.show_shape) if (Conf.warplist.show_shape)
WarpShapeDraw(ewin); WarpShapeDraw(ewin);
@ -520,6 +523,7 @@ WarpFocusHandleEvent(Win win __UNUSED__, XEvent * ev, void *prm __UNUSED__)
switch (keysym) switch (keysym)
{ {
case XK_Escape: case XK_Escape:
WarpShapeDraw(NULL);
WarpFocusHide(); WarpFocusHide();
break; break;
default: default: