surface: Refactor code
authorBenjamin Otte <otte@redhat.com>
Sat, 22 Apr 2023 14:33:35 +0000 (16:33 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 22 Apr 2023 14:33:35 +0000 (16:33 +0200)
commit893862a51a5a8734575000f2c66a5556d52a9f83
treee6de39f1f7f83e27775227dd0e669888ffd750f6
parent823eb4c6d9c03772bdac7cb21e8b3e53c36b5f9c
surface: Refactor code

Move the early exit conditions to the top and turn them into early exits
instead of nesting if statements.
gdk/gdksurface.c