mirror of
https://github.com/swaywm/sway.git
synced 2025-11-10 13:29:51 -05:00
Merge pull request #2478 from RyanDwyer/standardise-debug
Standardise debug variables
This commit is contained in:
commit
9f913614ca
7 changed files with 69 additions and 81 deletions
|
|
@ -3,8 +3,10 @@
|
|||
#include <wlr/render/wlr_texture.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "config.h"
|
||||
#include "sway/debug.h"
|
||||
#include "sway/input/input-manager.h"
|
||||
#include "sway/input/seat.h"
|
||||
#include "sway/output.h"
|
||||
#include "sway/server.h"
|
||||
#include "sway/tree/container.h"
|
||||
#include "sway/tree/layout.h"
|
||||
|
|
@ -12,6 +14,8 @@
|
|||
#include "config.h"
|
||||
#include "pango.h"
|
||||
|
||||
struct sway_debug debug;
|
||||
|
||||
static const char *layout_to_str(enum sway_container_layout layout) {
|
||||
switch (layout) {
|
||||
case L_HORIZ:
|
||||
|
|
@ -67,10 +71,8 @@ static int draw_container(cairo_t *cairo, struct sway_container *container,
|
|||
return height;
|
||||
}
|
||||
|
||||
bool enable_debug_tree = false;
|
||||
|
||||
void update_debug_tree() {
|
||||
if (!enable_debug_tree) {
|
||||
if (!debug.render_tree) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue