mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
Revert "xdg: Fix visual glitch when resizing xfce4-terminal from left edge"
This reverts commit31ec8f050c. Commitc59aeb5solves this in a different (hopefully more elegant) way. Related-to: #1370
This commit is contained in:
parent
c59aeb5673
commit
7c59351774
1 changed files with 3 additions and 10 deletions
13
src/xdg.c
13
src/xdg.c
|
|
@ -317,16 +317,9 @@ xdg_toplevel_view_configure(struct view *view, struct wlr_box geo)
|
|||
if (serial > 0) {
|
||||
set_pending_configure_serial(view, serial);
|
||||
} else if (view->pending_configure_serial == 0) {
|
||||
/*
|
||||
* We can't assume here that view->current is equal to
|
||||
* view->pending because some clients (e.g. terminals)
|
||||
* refuse to accept the exact size we requested. To
|
||||
* account for the size difference and avoid visual
|
||||
* glitches during resize, we apply the same position
|
||||
* adjustments here as in handle_commit().
|
||||
*/
|
||||
view_impl_apply_geometry(view, view->current.width,
|
||||
view->current.height);
|
||||
view->current.x = geo.x;
|
||||
view->current.y = geo.y;
|
||||
view_moved(view);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue