mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
Single line comments
This commit is contained in:
parent
59f9e27ee0
commit
f9c1712890
2 changed files with 3 additions and 9 deletions
|
|
@ -196,9 +196,7 @@ new_output_notify(struct wl_listener *listener, void *data)
|
|||
struct server *server = wl_container_of(listener, server, new_output);
|
||||
struct wlr_output *wlr_output = data;
|
||||
|
||||
/*
|
||||
* Name virtual outputs.
|
||||
*/
|
||||
/* Name virtual output */
|
||||
if (wlr_output_is_headless(wlr_output) && server->headless.pending_output_name[0] != '\0') {
|
||||
wlr_output_set_name(wlr_output, server->headless.pending_output_name);
|
||||
server->headless.pending_output_name[0] = '\0';
|
||||
|
|
@ -783,9 +781,7 @@ void
|
|||
output_add_virtual(struct server *server, const char *output_name)
|
||||
{
|
||||
if (output_name) {
|
||||
/*
|
||||
* Prevent creating outputs with the same name
|
||||
*/
|
||||
/* Prevent creating outputs with the same name */
|
||||
struct output *output;
|
||||
wl_list_for_each(output, &server->outputs, link) {
|
||||
if (wlr_output_is_headless(output->wlr_output)) {
|
||||
|
|
|
|||
|
|
@ -258,9 +258,7 @@ server_init(struct server *server)
|
|||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/*
|
||||
* Create headless backend to enable adding virtual outputs later on.
|
||||
*/
|
||||
/* Create headless backend to enable adding virtual outputs later on */
|
||||
server->headless.backend = wlr_headless_backend_create(server->wl_display);
|
||||
if (!server->headless.backend) {
|
||||
wlr_log(WLR_ERROR, "failed to create virtual output");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue