summaryrefslogtreecommitdiffstats
path: root/compton.h
diff options
context:
space:
mode:
authorRichard Grenville <pyxlcy@gmail.com>2012-09-13 22:30:18 +0800
committerRichard Grenville <pyxlcy@gmail.com>2012-09-13 22:30:18 +0800
commit27197e24dbcb3177642d55f56571205fead2b16e (patch)
tree740ed8e81b529994db715bf37d4429881c88bccd /compton.h
parent3a0ba85d3b5872221d21891be06bf3c8dfabd851 (diff)
downloadtdebase-27197e24dbcb3177642d55f56571205fead2b16e.tar.gz
tdebase-27197e24dbcb3177642d55f56571205fead2b16e.zip
Bug fix: Segfault when meeting FocusIn/Out from destoryed windows
I found compton segfaults sometimes when starting from .xinitrc. Debugging reveals my conky window was just reparented to a fvwm's frame window before compton picked up a FocusOut event on this conky window that has just been destroyed in the event queue. find_win() call in ev_focus_in/out() returned a NULL pointer. When it tried to use the pointer segfault happens. - Add extra check to ev_focus_in/out() to stop the segfault. - Reset window event mask on window reparenting to a non-root window to minimize wrong events. - More abstraction for determining window event mask.
Diffstat (limited to 'compton.h')
0 files changed, 0 insertions, 0 deletions