summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <[email protected]>2020-04-15 12:36:34 +0200
committerSimon Ser <[email protected]>2020-04-15 12:40:20 +0200
commitbb1fb4bbbf9fa63ee033cb7ca94cdab0dd6523ad (patch)
treeff1033b52d93004b497057149dd650a7aee2f27c
parent8067c84101d9966aac2fbf22a4a61fa35efd71de (diff)
tinywl: remove redundant create output global call
-rw-r--r--tinywl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tinywl.c b/tinywl.c
index e98aaf3..ec2e549 100644
--- a/tinywl.c
+++ b/tinywl.c
@@ -672,13 +672,13 @@ static 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. */
+ * 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);
}
static void xdg_surface_map(struct wl_listener *listener, void *data) {