aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
Diffstat (limited to 'rootston')
-rw-r--r--rootston/desktop.c6
-rw-r--r--rootston/output.c2
-rw-r--r--rootston/seat.c2
-rw-r--r--rootston/xwayland.c2
4 files changed, 10 insertions, 2 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index b42a71a2..3628b051 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -445,13 +445,17 @@ void view_init(struct roots_view *view, struct roots_desktop *desktop) {
view_damage_whole(view);
}
-void view_setup(struct roots_view *view) {
+void view_initial_focus(struct roots_view *view) {
struct roots_input *input = view->desktop->server->input;
// TODO what seat gets focus? the one with the last input event?
struct roots_seat *seat;
wl_list_for_each(seat, &input->seats, link) {
roots_seat_set_focus(seat, view);
}
+}
+
+void view_setup(struct roots_view *view) {
+ view_initial_focus(view);
view_center(view);
view_update_output(view, NULL);
diff --git a/rootston/output.c b/rootston/output.c
index 3e954989..4d0a9c05 100644
--- a/rootston/output.c
+++ b/rootston/output.c
@@ -470,6 +470,7 @@ static void render_output(struct roots_output *output) {
.output = output,
.when = &now,
.damage = &damage,
+ .alpha = 1.0,
};
if (!needs_swap) {
@@ -522,6 +523,7 @@ static void render_output(struct roots_output *output) {
}
// Render drag icons
+ data.alpha = 1.0;
drag_icons_for_each_surface(server->input, render_surface, &data);
renderer_end:
diff --git a/rootston/seat.c b/rootston/seat.c
index 1b7d05c4..9acbb737 100644
--- a/rootston/seat.c
+++ b/rootston/seat.c
@@ -721,7 +721,7 @@ void roots_seat_set_focus(struct roots_seat *seat, struct roots_view *view) {
#ifdef WLR_HAS_XWAYLAND
if (view && view->type == ROOTS_XWAYLAND_VIEW &&
- view->xwayland_surface->override_redirect) {
+ wlr_xwayland_surface_is_unmanaged(view->xwayland_surface)) {
return;
}
#endif
diff --git a/rootston/xwayland.c b/rootston/xwayland.c
index f917fe5d..56f068ea 100644
--- a/rootston/xwayland.c
+++ b/rootston/xwayland.c
@@ -350,5 +350,7 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) {
}
view_setup(view);
+ } else {
+ view_initial_focus(view);
}
}