aboutsummaryrefslogtreecommitdiff
path: root/src/output.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-04-15 12:30:27 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-04-15 12:30:27 +0200
commit2126ef07f861c47543662771eaa001dcdcc42dc0 (patch)
treeda69c2d9c6966d710e12e5aec86dcae4324fa27a /src/output.zig
parent5da3935c18dde38bd24ba97b6cfb55e7b0298c97 (diff)
downloadriver-2126ef07f861c47543662771eaa001dcdcc42dc0.tar.gz
river-2126ef07f861c47543662771eaa001dcdcc42dc0.tar.xz
Get rid of redundant create output global call.
Diffstat (limited to 'src/output.zig')
-rw-r--r--src/output.zig7
1 files changed, 1 insertions, 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);
}
}