Queue redraw on popup subsurface commit
Browse files at this commit0add05dde70df3c6d70362913aa007fac4c31f91Parent: 9474d051 changed file +5 -3
src/handlers/compositor.rsmodified+5 -3
| @@ -368,6 +368,9 @@ impl CompositorHandler for State { | |||
| 368 | } | 368 | } |
| 369 | 369 | ||
| 370 | // This is a commit of a non-toplevel root. | 370 | // This is a commit of a non-toplevel root. |
| 371 | + | ||
| 372 | + // This might be a popup. | ||
| 373 | + self.popups_handle_commit(surface); | ||
| 371 | } | 374 | } |
| 372 | 375 | ||
| 373 | // This is a commit of a non-root or a non-toplevel root. | 376 | // This is a commit of a non-root or a non-toplevel root. |
| @@ -387,9 +390,8 @@ impl CompositorHandler for State { | |||
| 387 | return; | 390 | return; |
| 388 | } | 391 | } |
| 389 | 392 | ||
| 390 | - // This might be a popup. | 393 | + // This might be a popup unsync subsurface. |
| 391 | - self.popups_handle_commit(surface); | 394 | + if let Some(popup) = self.niri.popups.find_popup(&root_surface) { |
| 392 | - if let Some(popup) = self.niri.popups.find_popup(surface) { | ||
| 393 | if let Some(output) = self.output_for_popup(&popup) { | 395 | if let Some(output) = self.output_for_popup(&popup) { |
| 394 | self.niri.queue_redraw(&output.clone()); | 396 | self.niri.queue_redraw(&output.clone()); |
| 395 | } | 397 | } |