mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
window-rules: add skipTaskbar and skipWindowSwitcher
This commit is contained in:
parent
15cd093f2e
commit
a6f0fc9c62
7 changed files with 51 additions and 7 deletions
|
|
@ -15,6 +15,7 @@
|
|||
#include "theme.h"
|
||||
#include "node.h"
|
||||
#include "view.h"
|
||||
#include "window-rules.h"
|
||||
#include "workspaces.h"
|
||||
|
||||
#define OSD_ITEM_HEIGHT (20)
|
||||
|
|
@ -69,7 +70,8 @@ get_osd_height(struct wl_list *node_list)
|
|||
continue;
|
||||
}
|
||||
view = node_view_from_node(node);
|
||||
if (!isfocusable(view)) {
|
||||
enum property skip = window_rules_get_property(view, "skipWindowSwitcher");
|
||||
if (!isfocusable(view) || skip == LAB_PROP_TRUE) {
|
||||
continue;
|
||||
}
|
||||
height += OSD_ITEM_HEIGHT;
|
||||
|
|
@ -344,7 +346,8 @@ render_osd(struct server *server, cairo_t *cairo, int w, int h,
|
|||
continue;
|
||||
}
|
||||
struct view *view = node_view_from_node(node);
|
||||
if (!isfocusable(view)) {
|
||||
enum property skip = window_rules_get_property(view, "skipWindowSwitcher");
|
||||
if (!isfocusable(view) || skip == LAB_PROP_TRUE) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue