mirror of
https://github.com/WayfireWM/wf-osk.git
synced 2025-04-05 12:56:45 +02:00
exiting main loop on close
This commit is contained in:
parent
4592b3208b
commit
8c04cce285
@ -62,6 +62,9 @@ namespace wf
|
|||||||
struct zwlr_layer_surface_v1 *surface)
|
struct zwlr_layer_surface_v1 *surface)
|
||||||
{
|
{
|
||||||
zwlr_layer_surface_v1_destroy(surface);
|
zwlr_layer_surface_v1_destroy(surface);
|
||||||
|
|
||||||
|
Gtk::Application *app = (Gtk::Application *) data;
|
||||||
|
app->quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct zwlr_layer_surface_v1_listener layer_surface_listener =
|
static struct zwlr_layer_surface_v1_listener layer_surface_listener =
|
||||||
@ -208,8 +211,9 @@ namespace wf
|
|||||||
std::exit(-1);
|
std::exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Gtk::Application *data = this->get_application().get();
|
||||||
zwlr_layer_surface_v1_add_listener(layer_surface,
|
zwlr_layer_surface_v1_add_listener(layer_surface,
|
||||||
&layer_surface_listener, nullptr);
|
&layer_surface_listener, data);
|
||||||
zwlr_layer_surface_v1_set_keyboard_interactivity(layer_surface, 0);
|
zwlr_layer_surface_v1_set_keyboard_interactivity(layer_surface, 0);
|
||||||
zwlr_layer_surface_v1_set_size(layer_surface, width, height);
|
zwlr_layer_surface_v1_set_size(layer_surface, width, height);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user