aboutsummaryrefslogtreecommitdiff
path: root/rootston/xwayland.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-09-28 09:11:16 -0400
committerDrew DeVault <sir@cmpwn.com>2017-09-28 09:11:16 -0400
commit220a6e9bf637471f3f5e392d3c3fb76ae9b7e138 (patch)
treedfd4c5b7186f9cb260046f58c7f02848822a757a /rootston/xwayland.c
parent906a816abf812445ec9e514e6115872632fb3ee1 (diff)
Add xwayland activate and fix EGL bug
Diffstat (limited to 'rootston/xwayland.c')
-rw-r--r--rootston/xwayland.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rootston/xwayland.c b/rootston/xwayland.c
index e68af907..f9ad2a22 100644
--- a/rootston/xwayland.c
+++ b/rootston/xwayland.c
@@ -17,6 +17,10 @@ static void handle_destroy(struct wl_listener *listener, void *data) {
free(roots_surface);
}
+static void x11_activate(struct roots_view *view, bool active) {
+ wlr_x11_window_activate(view->desktop->xwayland, view->x11_window);
+}
+
void handle_xwayland_surface(struct wl_listener *listener, void *data) {
struct roots_desktop *desktop =
wl_container_of(listener, desktop, xwayland_surface);
@@ -38,6 +42,7 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) {
view->roots_x11_surface = roots_surface;
view->wlr_surface = surface->surface;
view->desktop = desktop;
+ view->activate = x11_activate;
roots_surface->view = view;
wl_list_insert(&desktop->views, &view->link);
}