]> git.mdlowis.com Git - proto/labwc.git/commitdiff
server.c: remove redundant wlr_output_create_global()
authorJohan Malm <jgm323@gmail.com>
Mon, 11 May 2020 06:00:20 +0000 (07:00 +0100)
committerJohan Malm <jgm323@gmail.com>
Mon, 11 May 2020 06:00:20 +0000 (07:00 +0100)
server.c

index f384d1e5f4e1bd2b6c78a1b0605fbd8e00d105e1..295c3ece90379f6812bd919926b11f42e33aa80c 100644 (file)
--- a/server.c
+++ b/server.c
@@ -417,11 +417,11 @@ void server_new_output(struct wl_listener *listener, void *data)
        /* Adds this to the output layout. The add_auto function arranges
         * outputs from left-to-right in the order they appear. A more
         * sophisticated compositor would let the user configure the arrangement
-        * of outputs in the layout. */
+        * of outputs in the layout.
+        *
+        * The output layout utility automatically adds a wl_output global to the
+        * display, which Wayland clients can see to find out information about the
+        * output (such as DPI, scale factor, manufacturer, etc).
+        */
        wlr_output_layout_add_auto(server->output_layout, wlr_output);
-
-       /* Creating the global adds a wl_output global to the display, which
-        * Wayland clients can see to find out information about the output
-        * (such as DPI, scale factor, manufacturer, etc). */
-       wlr_output_create_global(wlr_output);
 }