Also need to check addr

This commit is contained in:
Cjacker 2017-10-25 15:29:29 +08:00
parent 9379f19c19
commit b7ad2d99e0

View File

@ -836,9 +836,9 @@ namespace detail
i->second->pos = pos; i->second->pos = pos;
} }
auto addr = i->second; auto addr = i->second;
XPoint spot; if(addr && addr->input_context) {
XVaNestedList list; XPoint spot;
if(addr->input_context) { XVaNestedList list;
spot.x = pos.x; spot.x = pos.x;
spot.y = pos.y + addr->size.height; spot.y = pos.y + addr->size.height;
list = ::XVaCreateNestedList(0, XNSpotLocation, &spot, list = ::XVaCreateNestedList(0, XNSpotLocation, &spot,