From 956eb86c4de92547fae813447db39eea0e81d3aa Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Thu, 31 Mar 2022 10:59:24 +0200 Subject: [PATCH] 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 --- src/warp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/warp.c b/src/warp.c index b2d4c18c..0f99c298 100644 --- a/src/warp.c +++ b/src/warp.c @@ -1,6 +1,6 @@ /* * 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 * of this software and associated documentation files (the "Software"), to @@ -411,7 +411,10 @@ WarpFocus(int delta) WarpFocusShow(); if (!EwinIsOnScreen(ewin)) - return; + { + WarpShapeDraw(NULL); + return; + } if (Conf.warplist.show_shape) WarpShapeDraw(ewin); @@ -520,6 +523,7 @@ WarpFocusHandleEvent(Win win __UNUSED__, XEvent * ev, void *prm __UNUSED__) switch (keysym) { case XK_Escape: + WarpShapeDraw(NULL); WarpFocusHide(); break; default: