Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/view/xwayland/xwayland-toplevel-view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,8 @@ class wayfire_xwayland_view : public wf::toplevel_view_interface_t, public wayfi
wlr_xwayland_surface_configure(xw, ev->x, ev->y, ev->width, ev->height);
if ((ev->mask & XCB_CONFIG_WINDOW_X) && (ev->mask & XCB_CONFIG_WINDOW_Y))
{
int sx = ev->x - output_origin.x;
int sy = ev->y - output_origin.y;
this->set_property<int>("startup-x", sx);
this->set_property<int>("startup-y", sy);
toplevel->pending().geometry.x = sx;
toplevel->pending().geometry.y = sy;
toplevel->pending().geometry.x = ev->x - output_origin.x;
toplevel->pending().geometry.y = ev->y - output_origin.y;
}

return;
Expand Down