mirror of
https://github.com/swaywm/sway.git
synced 2025-11-26 06:59:59 -05:00
Don't use wlr_output properties
These properties are before rotation.
This commit is contained in:
parent
7586f150c0
commit
acc2628c79
10 changed files with 47 additions and 39 deletions
|
|
@ -59,10 +59,10 @@ static void popup_unconstrain(struct sway_xdg_popup *popup) {
|
|||
// the output box expressed in the coordinate system of the toplevel parent
|
||||
// of the popup
|
||||
struct wlr_box output_toplevel_sx_box = {
|
||||
.x = output->wlr_output->lx - view->x,
|
||||
.y = output->wlr_output->ly - view->y,
|
||||
.width = output->wlr_output->width,
|
||||
.height = output->wlr_output->height,
|
||||
.x = output->lx - view->x,
|
||||
.y = output->ly - view->y,
|
||||
.width = output->width,
|
||||
.height = output->height,
|
||||
};
|
||||
|
||||
wlr_xdg_popup_unconstrain_from_box(wlr_popup, &output_toplevel_sx_box);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue