buffet / kiwmi

A fully programmable Wayland Compositor
Mozilla Public License 2.0
585 stars 22 forks source link

Fix active output segfault when view is off screen #61

Closed Uks2 closed 2 years ago

Uks2 commented 2 years ago

When a new view has just been created (i.e. we're running the kiwmi:on( "view", ... callback ), that window can be in a weird position, off all the existing outputs. Because the code for getting the active output asks for the output at that window's position, it can get back NULL and then segfault when trying to return wlr_output->data.

Now, if there's no output at the window's position, the code just moves on to look at the cursor.

Uks2 commented 2 years ago

Guess this has been superseded.