mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
ForEach: initialize view query window_type correctly
Before this patch, the window type would be checked even if not actually requested to do so. Fixes: #1852
This commit is contained in:
parent
95e4c0d8d7
commit
6f3f2aae27
3 changed files with 16 additions and 1 deletions
|
|
@ -305,6 +305,13 @@ enum lab_view_criteria {
|
|||
*/
|
||||
struct view *view_from_wlr_surface(struct wlr_surface *surface);
|
||||
|
||||
/**
|
||||
* view_query_create() - Create a new heap allocated view query with
|
||||
* all members initialized to their default values (window_type = -1,
|
||||
* NULL for strings)
|
||||
*/
|
||||
struct view_query *view_query_create(void);
|
||||
|
||||
/**
|
||||
* view_query_free() - Free a given view query
|
||||
* @query: Query to be freed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue