Mercurial > mplayer.hg
changeset 35752:d302b71c644e
Disable handler fuctions in wsWindowDestroy().
author | ib |
---|---|
date | Thu, 24 Jan 2013 15:27:00 +0000 |
parents | 0d703832d865 |
children | 9c74edcbbc96 |
files | gui/wm/ws.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/wm/ws.c Thu Jan 24 14:54:49 2013 +0000 +++ b/gui/wm/ws.c Thu Jan 24 15:27:00 2013 +0000 @@ -938,6 +938,11 @@ if (l != -1) wsWindowList[l] = NULL; + win->ReDraw = NULL; + win->MouseHandler = NULL; + win->KeyHandler = NULL; + win->DandDHandler = NULL; + if (win->wsCursor != None) { XFreeCursor(wsDisplay, win->wsCursor); win->wsCursor = None; @@ -948,9 +953,6 @@ wsImageDestroy(win); XDestroyWindow(wsDisplay, win->WindowID); #if 0 - win->ReDraw = NULL; - win->MouseHandler = NULL; - win->KeyHandler = NULL; win->Visible = wsNo; win->Focused = wsNo; win->Mapped = wsNo;