set_respect_close


Description:


[ Version ( since = "1.3" ) ]
public void set_respect_close (Window window, bool respect_close)

Compositors may send the `zwlr_layer_surface_v1.

closed` event in some cases (such as when an output is destroyed). Prior to v1.3 this always triggered a GTK `close-request` signal, which would destroy the window if not intercepted by application code. In v1.3+ this behavior is disabled by default, and can be turned back on by calling this function with true. To handle the `.closed` event without destroying your window turn respect_close on and connect a `close-request` listener that returns true.

Parameters:

window

A layer surface.

respect_close

If to forward the .closed event to GTK.


Namespace: GtkLayerShell