Skip to content

Commit 237e37b

Browse files
committed
util: Add layer-shell debug topic, mark unused topics.
1 parent c13dc04 commit 237e37b

3 files changed

Lines changed: 190 additions & 29 deletions

File tree

src/core/util.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,8 @@ topic_name (MetaDebugTopic topic)
336336
return "INPUT";
337337
case META_DEBUG_SCANOUT:
338338
return "SCANOUT";
339+
case META_DEBUG_LAYER_SHELL:
340+
return "LAYER_SHELL";
339341
case META_DEBUG_VERBOSE:
340342
return "VERBOSE";
341343
}

src/meta/util.h

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ void meta_fatal (const char *format,
7373
* @META_DEBUG_FOCUS: focus
7474
* @META_DEBUG_WORKAREA: workarea
7575
* @META_DEBUG_STACK: stack
76-
* @META_DEBUG_THEMES: themes
76+
* @META_DEBUG_THEMES: themes (deprecated: no call sites remain)
7777
* @META_DEBUG_SM: session management
78-
* @META_DEBUG_EVENTS: events
78+
* @META_DEBUG_EVENTS: events (deprecated: no call sites remain)
7979
* @META_DEBUG_WINDOW_STATE: window state
8080
* @META_DEBUG_WINDOW_OPS: window operations
8181
* @META_DEBUG_GEOMETRY: geometry
@@ -84,27 +84,28 @@ void meta_fatal (const char *format,
8484
* @META_DEBUG_XINERAMA: Xinerama
8585
* @META_DEBUG_KEYBINDINGS: keybindings
8686
* @META_DEBUG_SYNC: sync
87-
* @META_DEBUG_ERRORS: errors
87+
* @META_DEBUG_ERRORS: errors (deprecated: no call sites remain)
8888
* @META_DEBUG_STARTUP: startup
8989
* @META_DEBUG_PREFS: preferences
9090
* @META_DEBUG_GROUPS: groups
9191
* @META_DEBUG_RESIZING: resizing
9292
* @META_DEBUG_SHAPES: shapes
93-
* @META_DEBUG_COMPOSITOR: compositor
93+
* @META_DEBUG_COMPOSITOR: compositor (deprecated: no call sites remain)
9494
* @META_DEBUG_EDGE_RESISTANCE: edge resistance
9595
* @META_DEBUG_DBUS: dbus
9696
* @META_DEBUG_INPUT: input
9797
* @META_DEBUG_SCANOUT: direct scanout and dma-buf feedback
98+
* @META_DEBUG_LAYER_SHELL: wlr-layer-shell surfaces
9899
*/
99100
typedef enum
100101
{
101102
META_DEBUG_VERBOSE = -1,
102103
META_DEBUG_FOCUS = 1 << 0,
103104
META_DEBUG_WORKAREA = 1 << 1,
104105
META_DEBUG_STACK = 1 << 2,
105-
META_DEBUG_THEMES = 1 << 3,
106+
META_DEBUG_THEMES = 1 << 3, /* deprecated, unused */
106107
META_DEBUG_SM = 1 << 4,
107-
META_DEBUG_EVENTS = 1 << 5,
108+
META_DEBUG_EVENTS = 1 << 5, /* deprecated, unused */
108109
META_DEBUG_WINDOW_STATE = 1 << 6,
109110
META_DEBUG_WINDOW_OPS = 1 << 7,
110111
META_DEBUG_GEOMETRY = 1 << 8,
@@ -113,17 +114,18 @@ typedef enum
113114
META_DEBUG_XINERAMA = 1 << 11,
114115
META_DEBUG_KEYBINDINGS = 1 << 12,
115116
META_DEBUG_SYNC = 1 << 13,
116-
META_DEBUG_ERRORS = 1 << 14,
117+
META_DEBUG_ERRORS = 1 << 14, /* deprecated, unused */
117118
META_DEBUG_STARTUP = 1 << 15,
118119
META_DEBUG_PREFS = 1 << 16,
119120
META_DEBUG_GROUPS = 1 << 17,
120121
META_DEBUG_RESIZING = 1 << 18,
121122
META_DEBUG_SHAPES = 1 << 19,
122-
META_DEBUG_COMPOSITOR = 1 << 20,
123+
META_DEBUG_COMPOSITOR = 1 << 20, /* deprecated, unused */
123124
META_DEBUG_EDGE_RESISTANCE = 1 << 21,
124125
META_DEBUG_DBUS = 1 << 22,
125126
META_DEBUG_INPUT = 1 << 23,
126-
META_DEBUG_SCANOUT = 1 << 24
127+
META_DEBUG_SCANOUT = 1 << 24,
128+
META_DEBUG_LAYER_SHELL = 1 << 25
127129
} MetaDebugTopic;
128130

129131
META_EXPORT

0 commit comments

Comments
 (0)