diff options
Diffstat (limited to 'src/Slit.cc')
-rw-r--r-- | src/Slit.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Slit.cc b/src/Slit.cc index a16bfb8..422d0e4 100644 --- a/src/Slit.cc +++ b/src/Slit.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Slit.cc,v 1.80 2003/08/30 01:01:47 fluxgen Exp $ | 25 | // $Id: Slit.cc,v 1.81 2003/11/01 00:12:53 rathnor Exp $ |
26 | 26 | ||
27 | #include "Slit.hh" | 27 | #include "Slit.hh" |
28 | 28 | ||
@@ -968,7 +968,10 @@ void Slit::handleEvent(XEvent &event) { | |||
968 | configureRequestEvent(event.xconfigurerequest); | 968 | configureRequestEvent(event.xconfigurerequest); |
969 | } else if (event.type == DestroyNotify) { | 969 | } else if (event.type == DestroyNotify) { |
970 | removeClient(event.xdestroywindow.window, false); | 970 | removeClient(event.xdestroywindow.window, false); |
971 | } else if (event.type == UnmapNotify) { | 971 | } else if (event.type == UnmapNotify && event.xany.send_event) { |
972 | // we ignore server-generated events, which can occur | ||
973 | // on restart. The ICCCM says that a client must send | ||
974 | // a synthetic event for the withdrawn state | ||
972 | removeClient(event.xunmap.window); | 975 | removeClient(event.xunmap.window); |
973 | } | 976 | } |
974 | } | 977 | } |