[draft] just a quick proof-of-concept for window-rules in support lxqt-panel

Related-to: #768
This commit is contained in:
Johan Malm 2023-02-17 22:31:55 +00:00
parent d571b0b28a
commit ed4edd77a4
9 changed files with 96 additions and 0 deletions

View file

@ -348,6 +348,7 @@ void xdg_toplevel_decoration(struct wl_listener *listener, void *data);
void xdg_activation_handle_request(struct wl_listener *listener, void *data);
void xdg_toplevel_view_convert_to_unmanaged(struct view *view);
void xdg_surface_new(struct wl_listener *listener, void *data);
void foreign_toplevel_handle_create(struct view *view);

View file

@ -13,6 +13,7 @@ enum node_descriptor_type {
LAB_NODE_DESC_NODE = 0,
LAB_NODE_DESC_VIEW,
LAB_NODE_DESC_XDG_POPUP,
LAB_NODE_DESC_XDG_UNMANAGED,
LAB_NODE_DESC_LAYER_SURFACE,
LAB_NODE_DESC_LAYER_POPUP,
LAB_NODE_DESC_MENUITEM,
@ -37,6 +38,7 @@ struct node_descriptor {
* @data: struct to point to as follows:
* - LAB_NODE_DESC_VIEW struct view
* - LAB_NODE_DESC_XDG_POPUP struct view
* - LAB_NODE_DESC_XDG_UNMANAGED struct xdg_unmanaged
* - LAB_NODE_DESC_LAYER_SURFACE struct lab_layer_surface
* - LAB_NODE_DESC_LAYER_POPUP struct lab_layer_popup
* - LAB_NODE_DESC_MENUITEM struct menuitem

View file

@ -167,6 +167,7 @@ void view_adjust_size(struct view *view, int *w, int *h);
void view_evacuate_region(struct view *view);
void view_on_output_destroy(struct view *view);
void view_destroy(struct view *view);
void view_apply_rules(struct view *view);
/* xdg.c */
struct wlr_xdg_surface *xdg_surface_from_view(struct view *view);

10
include/xdg-unmanaged.h Normal file
View file

@ -0,0 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __LABWC_XDG_UNMANAGED
#define __LABWC_XDG_UNMANAGED
struct server;
struct wlr_xdg_surface;
void xdg_unmanaged_create(struct server *server, struct wlr_xdg_surface *wlr_xdg_surface);
#endif /* __LABWC_XDG_UNMANAGED */