Avoid null pointer dereference when switching focus
commit0b6fad98b01843ea564e7d4184663eef63f3a047
authorJiri Svoboda <jiri@wiwaxia>
Wed, 9 Aug 2023 17:24:57 +0000 (9 19:24 +0200)
committerJiri Svoboda <jiri@wiwaxia>
Thu, 10 Aug 2023 14:25:09 +0000 (10 16:25 +0200)
tree0bcc400654319ed152557be71d74770435eed125
parent24be331ea10d154caa5f9eead16febf3485cbcf7
Avoid null pointer dereference when switching focus

I hit this when I created a new seat and there was no focused window.
It could probably also happen e.g. if there are no windows.
Now we also set focus for a newly created seat.
uspace/srv/hid/display/seat.c