xwayland: Make resizing work again
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 30 Apr 2014 20:45:49 +0000 (13:45 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 30 Apr 2014 20:45:53 +0000 (13:45 -0700)
commite0b9d5be84be1e1e5d44a2c449fceb24d649e5e9
treee53c57e79644c3406962daecce986bbdbff54a15
parent62899f512482241cbadf472840a2a2f38c907378
xwayland: Make resizing work again

9c376b54ea6f60ae10d93653132e22ef66a536d7 fixed the crash when a client goes
away during a resize grab.  The shsurf->resource is set to NULL in that
case and we were trying to send out events to a NULL resource.  However,
xwayland shell surfaces are created by the xwayland module and don't have a
resource.  We use a different function pointer for sending the configure
events that handle the events inside xwayland instead of sending protocol
events.

To fix all this, we just move the check for a NULL resource into the
functions that we use for sending configure events for wl_shell and
xdg_shell.
desktop-shell/shell.c