mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
Add option to avoid DND shadows.
This commit is contained in:
parent
c01befec1f
commit
92eb57ff44
2 changed files with 12 additions and 1 deletions
|
@ -48,6 +48,10 @@ menus, and for all windows on hide and restore events.
|
||||||
.BI \-C
|
.BI \-C
|
||||||
When \-c is specified, attempts to avoid painting shadows on panels and docks.
|
When \-c is specified, attempts to avoid painting shadows on panels and docks.
|
||||||
.TP
|
.TP
|
||||||
|
.BI \-G
|
||||||
|
When \-c is specified, attempts to avoid painting shadows on
|
||||||
|
drag-and-drop windows.
|
||||||
|
.TP
|
||||||
.BI \-F
|
.BI \-F
|
||||||
When \-f is specified, also enables the fade effect when windows change their
|
When \-f is specified, also enables the fade effect when windows change their
|
||||||
opacity, as with transset(1).
|
opacity, as with transset(1).
|
||||||
|
|
|
@ -2422,6 +2422,7 @@ main(int argc, char **argv) {
|
||||||
char *display = 0;
|
char *display = 0;
|
||||||
int o;
|
int o;
|
||||||
Bool no_dock_shadow = False;
|
Bool no_dock_shadow = False;
|
||||||
|
Bool no_dnd_shadow = False;
|
||||||
|
|
||||||
for (i = 0; i < NUM_WINTYPES; ++i) {
|
for (i = 0; i < NUM_WINTYPES; ++i) {
|
||||||
win_type_fade[i] = False;
|
win_type_fade[i] = False;
|
||||||
|
@ -2429,7 +2430,7 @@ main(int argc, char **argv) {
|
||||||
win_type_opacity[i] = 1.0;
|
win_type_opacity[i] = 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
while ((o = getopt(argc, argv, "D:I:O:d:r:o:m:l:t:i:e:scnfFCaSz")) != -1) {
|
while ((o = getopt(argc, argv, "D:I:O:d:r:o:m:l:t:i:e:scnfFCaSzG")) != -1) {
|
||||||
switch (o) {
|
switch (o) {
|
||||||
case 'd':
|
case 'd':
|
||||||
display = optarg;
|
display = optarg;
|
||||||
|
@ -2503,6 +2504,9 @@ main(int argc, char **argv) {
|
||||||
fprintf(stderr, "Warning: "
|
fprintf(stderr, "Warning: "
|
||||||
"-n, -a, and -s have been removed.\n");
|
"-n, -a, and -s have been removed.\n");
|
||||||
break;
|
break;
|
||||||
|
case 'G':
|
||||||
|
no_dnd_shadow = True;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
usage(argv[0]);
|
usage(argv[0]);
|
||||||
break;
|
break;
|
||||||
|
@ -2513,6 +2517,9 @@ main(int argc, char **argv) {
|
||||||
win_type_shadow[WINTYPE_DOCK] = False;
|
win_type_shadow[WINTYPE_DOCK] = False;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (no_dnd_shadow)
|
||||||
|
win_type_shadow[WINTYPE_DND] = False;
|
||||||
|
|
||||||
dpy = XOpenDisplay(display);
|
dpy = XOpenDisplay(display);
|
||||||
if (!dpy) {
|
if (!dpy) {
|
||||||
fprintf(stderr, "Can't open display\n");
|
fprintf(stderr, "Can't open display\n");
|
||||||
|
|
Loading…
Reference in a new issue