Commit ecd36df
committed
wobbly: Fix resizing for wobbly surfaces
This problem was due to the fact that rotate changed the
surface position when rotating to offset the fact that
resize didn't keep the position updated as expected, that
is, position.p + 0.5 * size.p = center.p. Wobbly must also
make this assumption to sync correctly but the position
must be adjusted during resize, not on rotate motion.
As a side note, shell_surface_adjust_for_transform should
end up in the rotate plugin resize handler, if/when it is
ported to a standalone version.1 parent 746f1d7 commit ecd36df
3 files changed
Lines changed: 46 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4343 | 4343 | | |
4344 | 4344 | | |
4345 | 4345 | | |
4346 | | - | |
| 4346 | + | |
4347 | 4347 | | |
4348 | 4348 | | |
4349 | 4349 | | |
| |||
4382 | 4382 | | |
4383 | 4383 | | |
4384 | 4384 | | |
4385 | | - | |
4386 | | - | |
4387 | | - | |
4388 | | - | |
4389 | | - | |
4390 | | - | |
4391 | | - | |
4392 | | - | |
4393 | | - | |
4394 | | - | |
4395 | | - | |
4396 | | - | |
4397 | 4385 | | |
4398 | 4386 | | |
4399 | 4387 | | |
| |||
5063 | 5051 | | |
5064 | 5052 | | |
5065 | 5053 | | |
| 5054 | + | |
| 5055 | + | |
| 5056 | + | |
| 5057 | + | |
| 5058 | + | |
| 5059 | + | |
| 5060 | + | |
| 5061 | + | |
| 5062 | + | |
| 5063 | + | |
| 5064 | + | |
| 5065 | + | |
| 5066 | + | |
| 5067 | + | |
| 5068 | + | |
| 5069 | + | |
| 5070 | + | |
| 5071 | + | |
| 5072 | + | |
| 5073 | + | |
| 5074 | + | |
| 5075 | + | |
| 5076 | + | |
| 5077 | + | |
| 5078 | + | |
| 5079 | + | |
| 5080 | + | |
| 5081 | + | |
| 5082 | + | |
| 5083 | + | |
| 5084 | + | |
| 5085 | + | |
| 5086 | + | |
| 5087 | + | |
| 5088 | + | |
| 5089 | + | |
| 5090 | + | |
| 5091 | + | |
5066 | 5092 | | |
5067 | 5093 | | |
5068 | 5094 | | |
| |||
5097 | 5123 | | |
5098 | 5124 | | |
5099 | 5125 | | |
| 5126 | + | |
| 5127 | + | |
| 5128 | + | |
5100 | 5129 | | |
5101 | 5130 | | |
5102 | 5131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
631 | | - | |
| 631 | + | |
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
643 | | - | |
| 643 | + | |
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
830 | | - | |
831 | | - | |
| 830 | + | |
| 831 | + | |
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
| |||
0 commit comments