mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
layer-shell: stop sending configure events on surface creation
With wlroots 0.18, layer-shell's new_surface event is emitted on zwlr_layer_shell_v1.get_layer_surface request rather than the first commit. This change layer-shell clients like fuzzel to flicker on launch because labwc was sending a configure event with fullscreen geometry due to the absence of geometry hints on get_layer_surface requests. This commit removes the code that updates the usable area from new_surface handler, preventing unintended configure events with fullscreen geometry.
This commit is contained in:
parent
3879f1f080
commit
1765bf8cc2
1 changed files with 0 additions and 9 deletions
|
|
@ -579,15 +579,6 @@ handle_new_layer_surface(struct wl_listener *listener, void *data)
|
|||
surface->node_destroy.notify = handle_node_destroy;
|
||||
wl_signal_add(&surface->scene_layer_surface->tree->node.events.destroy,
|
||||
&surface->node_destroy);
|
||||
|
||||
/*
|
||||
* Temporarily set the layer's current state to pending so that
|
||||
* it can easily be arranged.
|
||||
*/
|
||||
struct wlr_layer_surface_v1_state old_state = layer_surface->current;
|
||||
layer_surface->current = layer_surface->pending;
|
||||
output_update_usable_area(output);
|
||||
layer_surface->current = old_state;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue