mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-24 06:59:45 -05:00
xwm: improve activation and dont send focus twice
This commit is contained in:
parent
1be650d78a
commit
0d1dd84a48
3 changed files with 69 additions and 55 deletions
|
|
@ -11,12 +11,8 @@
|
|||
|
||||
static void activate(struct roots_view *view, bool active) {
|
||||
assert(view->type == ROOTS_XWAYLAND_VIEW);
|
||||
if (active) {
|
||||
wlr_xwayland_surface_activate(view->desktop->xwayland,
|
||||
view->xwayland_surface);
|
||||
} else {
|
||||
wlr_xwayland_surface_activate(view->desktop->xwayland, NULL);
|
||||
}
|
||||
struct wlr_xwayland *xwayland = view->desktop->xwayland;
|
||||
wlr_xwayland_surface_activate(xwayland, view->xwayland_surface, active);
|
||||
}
|
||||
|
||||
static void resize(struct roots_view *view, uint32_t width, uint32_t height) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue