Skip to content

Commit e14230e

Browse files
committed
Add "-i *" to ignore all applications
1 parent 00f658a commit e14230e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

man/xssproxy.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function from the Xss (X11 Screen Saver extension) library.
2020
print messages when receiving inhibition requests
2121
.TP
2222
.B -i --ignore
23-
do not disable the screensaver for this application
23+
do not disable the screensaver for this application ("*" to ignore all applications)
2424
.TP
2525
.B --version
2626
print version information and exit

xssproxy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ uint32_t inhibit_request(const char *sender, const char *app_name)
144144
{
145145
app = g_malloc(sizeof(*app));
146146
app->cookies = g_array_new(0, 0, sizeof(uint32_t));
147-
app->ignored = g_hash_table_contains(ignored, app_name);
147+
app->ignored = g_hash_table_contains(ignored, app_name) || g_hash_table_contains(ignored, "*");
148148
g_hash_table_insert(apps, g_strdup(sender), app);
149149
}
150150
if (should_disable_screensaver())

0 commit comments

Comments
 (0)