Fixed not properly checking if window is ran though XWayland
This commit is contained in:
parent
4d584e1da2
commit
afd2611ed2
1 changed files with 2 additions and 2 deletions
|
@ -58,8 +58,8 @@ void root_destroy(struct sway_root *root) {
|
||||||
/* Set minimized state from scratchpad container `show` state */
|
/* Set minimized state from scratchpad container `show` state */
|
||||||
static void root_scratchpad_set_minimize(struct sway_container *con, bool minimize) {
|
static void root_scratchpad_set_minimize(struct sway_container *con, bool minimize) {
|
||||||
struct wlr_foreign_toplevel_handle_v1 *foreign_toplevel = con->view->foreign_toplevel;
|
struct wlr_foreign_toplevel_handle_v1 *foreign_toplevel = con->view->foreign_toplevel;
|
||||||
struct wlr_xwayland_surface *xsurface = con->view->wlr_xwayland_surface;
|
if (wlr_surface_is_xwayland_surface(con->view->surface)) {
|
||||||
if (xsurface) {
|
struct wlr_xwayland_surface *xsurface = wlr_xwayland_surface_from_wlr_surface(con->view->surface);
|
||||||
wlr_xwayland_surface_set_minimized(xsurface, minimize);
|
wlr_xwayland_surface_set_minimized(xsurface, minimize);
|
||||||
} else if (foreign_toplevel) {
|
} else if (foreign_toplevel) {
|
||||||
wlr_foreign_toplevel_handle_v1_set_minimized(foreign_toplevel, minimize);
|
wlr_foreign_toplevel_handle_v1_set_minimized(foreign_toplevel, minimize);
|
||||||
|
|
Loading…
Add table
Reference in a new issue