diff options
author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-15 12:36:34 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-04-15 12:40:20 +0200 |
commit | 25d0d1be3a64ceaf9997c390147996dadbf93aee (patch) | |
tree | bc8c1a0a8aa0f267c2f1517c670dc3369fda4b03 /tinywl | |
parent | ab4dc1636ca044313b3ebc78bbf35e30d00a6986 (diff) |
tinywl: remove redundant create output global call
Diffstat (limited to 'tinywl')
-rw-r--r-- | tinywl/tinywl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tinywl/tinywl.c b/tinywl/tinywl.c index e98aaf3f..ec2e549a 100644 --- a/tinywl/tinywl.c +++ b/tinywl/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) { |