| 3433 | } |
| 3434 | |
| 3435 | static void handle_surface_configure(void *data, xdg_surface *xdg_surface, uint32_t serial) { |
| 3436 | Demo &demo = *static_cast<Demo *>(data); |
| 3437 | xdg_surface_ack_configure(xdg_surface, serial); |
| 3438 | demo.xdg_surface_has_been_configured = true; |
| 3439 | if (demo.pending_width > 0) { |
| 3440 | demo.width = demo.pending_width; |
| 3441 | } |
| 3442 | if (demo.pending_height > 0) { |
| 3443 | demo.height = demo.pending_height; |
| 3444 | } |
| 3445 | demo.resize(); |
| 3446 | } |
| 3447 | |
| 3448 | static const xdg_surface_listener surface_listener = {handle_surface_configure}; |
| 3449 | |