mirror of
https://github.com/swaywm/sway.git
synced 2025-11-29 06:59:46 -05:00
Fix output position issue
Looks like the output dimensions need to be set when arranging rather than when a mode is set. Fixes an issue with position of fullscreen views.
This commit is contained in:
parent
7f40b928c7
commit
93ff7879f1
2 changed files with 9 additions and 8 deletions
|
|
@ -505,10 +505,6 @@ static void handle_destroy(struct wl_listener *listener, void *data) {
|
|||
|
||||
static void handle_mode(struct wl_listener *listener, void *data) {
|
||||
struct sway_output *output = wl_container_of(listener, output, mode);
|
||||
output->lx = output->wlr_output->lx;
|
||||
output->ly = output->wlr_output->ly;
|
||||
wlr_output_effective_resolution(output->wlr_output,
|
||||
&output->width, &output->height);
|
||||
arrange_layers(output);
|
||||
arrange_output(output);
|
||||
transaction_commit_dirty();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue