mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-01-02 11:08:24 -05:00
decorate xwayland views
This commit is contained in:
parent
dc701b72fc
commit
3751a17321
5 changed files with 47 additions and 1 deletions
|
|
@ -296,6 +296,7 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) {
|
|||
view->type = ROOTS_XWAYLAND_VIEW;
|
||||
view->x = (double)surface->x;
|
||||
view->y = (double)surface->y;
|
||||
|
||||
view->xwayland_surface = surface;
|
||||
view->roots_xwayland_surface = roots_surface;
|
||||
view->wlr_surface = surface->surface;
|
||||
|
|
@ -311,6 +312,10 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) {
|
|||
wl_list_insert(&desktop->views, &view->link);
|
||||
|
||||
if (!surface->override_redirect) {
|
||||
view->decorated = true;
|
||||
view->border_width = 4;
|
||||
view->titlebar_height = 12;
|
||||
|
||||
view_setup(view);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue