mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
xdg: don't try to reposition unmapped view in timeout handler
This commit is contained in:
parent
e530f43708
commit
9557091a1a
1 changed files with 8 additions and 0 deletions
|
|
@ -288,6 +288,14 @@ handle_configure_timeout(void *data)
|
|||
view->pending_configure_serial = 0;
|
||||
view->pending_configure_timeout = NULL;
|
||||
|
||||
/*
|
||||
* No need to do anything else if the view is just being slow to
|
||||
* map - the map handler will take care of the positioning.
|
||||
*/
|
||||
if (!view->mapped) {
|
||||
return 0; /* ignored per wl_event_loop docs */
|
||||
}
|
||||
|
||||
bool empty_pending = wlr_box_empty(&view->pending);
|
||||
if (empty_pending || view->pending.x != view->current.x
|
||||
|| view->pending.y != view->current.y) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue