tty: Unbind gles wl_display on drop
Browse files at this commit38d85e68abd1387e64935c7da483fb4aaeead67fParent: 14729f71 changed file +2 -1
- src/tty.rs +2 -1
src/tty.rsmodified+2 -1
| @@ -466,7 +466,8 @@ impl Tty { | |||
| 466 | self.connector_disconnected(niri, connector, crtc); | 466 | self.connector_disconnected(niri, connector, crtc); |
| 467 | } | 467 | } |
| 468 | 468 | ||
| 469 | - let device = self.output_device.take().unwrap(); | 469 | + let mut device = self.output_device.take().unwrap(); |
| 470 | + device.gles.unbind_wl_display(); | ||
| 470 | niri.event_loop.remove(device.token); | 471 | niri.event_loop.remove(device.token); |
| 471 | } | 472 | } |
| 472 | 473 | ||