Handle logs from libwayland
Fix case of attach, when the buffer resource is dead.
Cast AND operation to bool
More NET_WM compatibility