mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-28 02:34:15 +00:00
enable/commit output at end of function
This commit is contained in:
parent
5ce5d11c2d
commit
b50f330e60
7
dwl.c
7
dwl.c
@ -332,9 +332,6 @@ createmon(struct wl_listener *listener, void *data)
|
|||||||
if (!wl_list_empty(&wlr_output->modes)) {
|
if (!wl_list_empty(&wlr_output->modes)) {
|
||||||
struct wlr_output_mode *mode = wlr_output_preferred_mode(wlr_output);
|
struct wlr_output_mode *mode = wlr_output_preferred_mode(wlr_output);
|
||||||
wlr_output_set_mode(wlr_output, mode);
|
wlr_output_set_mode(wlr_output, mode);
|
||||||
wlr_output_enable(wlr_output, true);
|
|
||||||
if (!wlr_output_commit(wlr_output))
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Allocates and configures monitor state using configured rules */
|
/* Allocates and configures monitor state using configured rules */
|
||||||
@ -358,6 +355,10 @@ createmon(struct wl_listener *listener, void *data)
|
|||||||
wl_signal_add(&wlr_output->events.frame, &m->frame);
|
wl_signal_add(&wlr_output->events.frame, &m->frame);
|
||||||
wl_list_insert(&mons, &m->link);
|
wl_list_insert(&mons, &m->link);
|
||||||
|
|
||||||
|
wlr_output_enable(wlr_output, true);
|
||||||
|
if (!wlr_output_commit(wlr_output))
|
||||||
|
return;
|
||||||
|
|
||||||
/* Adds this to the output layout. The add_auto function arranges outputs
|
/* Adds this to the output layout. The add_auto function arranges outputs
|
||||||
* from left-to-right in the order they appear. A more sophisticated
|
* from left-to-right in the order they appear. A more sophisticated
|
||||||
* compositor would let the user configure the arrangement of outputs in the
|
* compositor would let the user configure the arrangement of outputs in the
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user