summaryrefslogtreecommitdiff
path: root/app/cwm/calmwm.h
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2013-11-12 21:25:01 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2013-11-12 21:25:01 +0000
commit22e1791b888248aed60988bb786144a9087f8c08 (patch)
tree7d25fc555b535bb63cd45d8c96db39e20a887119 /app/cwm/calmwm.h
parentcf0ae813e65e2b5b9d557823b3126d38c050b811 (diff)
Alter the r1.35 of event.c race fix. Remove the forward looking event
queue check (removing the need for a server grab/ungrab) - if the client is going away, let it fall all the way through to a DestroyNotify event. There's no longer a need for us to manually destroy a client ourselves (removing yet another server grab/ungrab). Instead, when the UnmapNotify event is synthetic, simply set the state to Withdrawn (as per ICCCM), else Iconic (in our case 'hidden'). Verified with test case from the 2009 race which was the original reason for r1.35 of event.c.
Diffstat (limited to 'app/cwm/calmwm.h')
-rw-r--r--app/cwm/calmwm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/cwm/calmwm.h b/app/cwm/calmwm.h
index 9d7d722d3..aa8493bf2 100644
--- a/app/cwm/calmwm.h
+++ b/app/cwm/calmwm.h
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: calmwm.h,v 1.227 2013/11/08 17:35:12 okan Exp $
+ * $OpenBSD: calmwm.h,v 1.228 2013/11/12 21:25:00 okan Exp $
*/
#ifndef _CALMWM_H_
@@ -370,7 +370,7 @@ struct client_ctx *client_current(void);
void client_cycle(struct screen_ctx *, int);
void client_cycle_leave(struct screen_ctx *,
struct client_ctx *);
-void client_delete(struct client_ctx *, int);
+void client_delete(struct client_ctx *);
void client_draw_border(struct client_ctx *);
struct client_ctx *client_find(Window);
void client_freeze(struct client_ctx *);