1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

[Config] Remove fake-transparency/background option.

* fake-transparency
* fake-background
This commit is contained in:
Dave Davenport 2021-06-08 23:06:53 +02:00
parent e0a3067f69
commit 0726ed9f33
6 changed files with 0 additions and 35 deletions

View file

@ -127,11 +127,9 @@ Settings config = {
.monitor = "-5",
/** Set filter */
.filter = NULL,
.fake_transparency = FALSE,
.dpi = -1,
.threads = 0,
.scroll_method = 0,
.fake_background = "screenshot",
.window_format = "{w} {c} {t}",
.click_to_exit = TRUE,
.theme = NULL,

View file

@ -1197,19 +1197,6 @@ Command to open a Desktop Entry that is a Link.
.PP
Make \fBrofi\fP create a pid file and check this on startup. The pid file prevents multiple \fBrofi\fP instances from running simultaneously. This is useful when running \fBrofi\fP from a key\-binding daemon.
.PP
\fB\fC\-fake\-transparency\fR
.PP
Enable fake transparency. This only works with transparent background color in the theme.
.PP
\fB\fC\-fake\-background\fR
.PP
Select what to use as background for fake transparency. This can be 'background', 'screenshot' or a path to an image
file (currently only supports png).
.PP
\fB\fC\-display\-{mode}\fR \fIstring\fP

View file

@ -720,15 +720,6 @@ Command to open a Desktop Entry that is a Link.
Make **rofi** create a pid file and check this on startup. The pid file prevents multiple **rofi** instances from running simultaneously. This is useful when running **rofi** from a key-binding daemon.
`-fake-transparency`
Enable fake transparency. This only works with transparent background color in the theme.
`-fake-background`
Select what to use as background for fake transparency. This can be 'background', 'screenshot' or a path to an image
file (currently only supports png).
`-display-{mode}` *string*
Set the name to use for mode. This is used as prompt and in combi-browser.

View file

@ -146,15 +146,11 @@ typedef struct
char *monitor;
/** filter */
char *filter;
/** bg image */
unsigned int fake_transparency;
/** dpi */
int dpi;
/** Number threads (1 to disable) */
unsigned int threads;
unsigned int scroll_method;
/** Background type */
char *fake_background;
char *window_format;
/** Click outside the window to exit */

View file

@ -881,9 +881,6 @@ void __create_window ( MenuFlags menu_flags )
if ( transparency ) {
rofi_view_setup_fake_transparency ( WIDGET ( win ), transparency );
}
else if ( config.fake_transparency && config.fake_background ) {
rofi_view_setup_fake_transparency ( WIDGET ( win ), config.fake_background );
}
if ( xcb->sncontext != NULL ) {
sn_launchee_context_setup_window ( xcb->sncontext, CacheState.main_window );
}

View file

@ -170,16 +170,12 @@ static XrmOption xrmOptions[] = {
"Monitor id to show on", CONFIG_DEFAULT },
{ xrm_String, "filter", { .str = &config.filter }, NULL,
"Pre-set filter", CONFIG_DEFAULT },
{ xrm_Boolean, "fake-transparency", { .num = &config.fake_transparency }, NULL,
"Fake transparency *DEPRECATED*", CONFIG_DEFAULT },
{ xrm_SNumber, "dpi", { .snum = &config.dpi }, NULL,
"DPI", CONFIG_DEFAULT },
{ xrm_Number, "threads", { .num = &config.threads }, NULL,
"Threads to use for string matching", CONFIG_DEFAULT },
{ xrm_Number, "scroll-method", { .num = &config.scroll_method }, NULL,
"Scrolling method. (0: Page, 1: Centered)", CONFIG_DEFAULT },
{ xrm_String, "fake-background", { .str = &config.fake_background }, NULL,
"Background to use for fake transparency. (background or screenshot) *DEPRECATED*", CONFIG_DEFAULT },
{ xrm_String, "window-format", { .str = &config.window_format }, NULL,
"Window Format. w (desktop name), t (title), n (name), r (role), c (class)", CONFIG_DEFAULT },
{ xrm_Boolean, "click-to-exit", { .snum = &config.click_to_exit }, NULL,