Interpret the size in the configure event as window geometry
The size of the configure event has always been specified as in window geometry coordinates, but it was never implemented this way.
This commit is contained in:
committed by
Jason Ekstrand
parent
7b98207667
commit
bd65e50875
@@ -1832,6 +1832,11 @@ surface_resize(struct shell_surface *shsurf,
|
||||
surface_subsurfaces_boundingbox(shsurf->surface, NULL, NULL,
|
||||
&resize->width, &resize->height);
|
||||
|
||||
resize->width -= shsurf->margin.left;
|
||||
resize->width -= shsurf->margin.right;
|
||||
resize->height -= shsurf->margin.top;
|
||||
resize->height -= shsurf->margin.bottom;
|
||||
|
||||
shsurf->resize_edges = edges;
|
||||
shell_surface_state_changed(shsurf);
|
||||
shell_grab_start(&resize->base, &resize_grab_interface, shsurf,
|
||||
|
||||
Reference in New Issue
Block a user