mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
backend/wayland: use xdga client activation
This commit is contained in:
parent
e2aff8a9b0
commit
8e225261f0
4 changed files with 21 additions and 0 deletions
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include "linux-dmabuf-unstable-v1-client-protocol.h"
|
||||
#include "presentation-time-client-protocol.h"
|
||||
#include "xdg-activation-v1-client-protocol.h"
|
||||
#include "xdg-decoration-unstable-v1-client-protocol.h"
|
||||
#include "xdg-shell-client-protocol.h"
|
||||
|
||||
|
|
@ -594,6 +595,12 @@ struct wlr_output *wlr_wl_output_create(struct wlr_backend *wlr_backend) {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: let the compositor do this bit
|
||||
if (backend->activation_v1 && backend->activation_token) {
|
||||
xdg_activation_v1_activate(backend->activation_v1,
|
||||
backend->activation_token, output->surface);
|
||||
}
|
||||
|
||||
// Start the rendering loop by requesting the compositor to render a frame
|
||||
wlr_output_schedule_frame(wlr_output);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue