git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commita112e08dab9f15df4124d4cad7b2d1065febb5f5
parentfb9778ffa9
authorIsaac Freund <[email protected]>
date2020-04-15 12:30
Get rid of redundant create output global call.

 src/output.zig | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/output.zig b/src/output.zig
index a31d7fc..74a0c2a 100644
--- a/src/output.zig
+++ b/src/output.zig
@@ -90,13 +90,8 @@ pub const Output = struct {
             // Add the new output to the 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.
+            // layout. This automatically creates an output global on the wl_display.
             c.wlr_output_layout_add_auto(root.wlr_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).
-            c.wlr_output_create_global(wlr_output);
         }
     }