summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@blame.services>2021-06-08 23:06:53 +0200
committerDave Davenport <qball@blame.services>2021-06-08 23:07:52 +0200
commit0726ed9f33d5c5ef3951a1f3629055cd42fc084f (patch)
tree7d2c47cbb1f4578b4e0b1b47d77fa50585c41f74
parente0a3067f693c4aef0f1a6c75f93b737c020a6c71 (diff)
[Config] Remove fake-transparency/background option.
* fake-transparency * fake-background
-rw-r--r--config/config.c2
-rw-r--r--doc/rofi.113
-rw-r--r--doc/rofi.1.markdown9
-rw-r--r--include/settings.h4
-rw-r--r--source/view.c3
-rw-r--r--source/xrmoptions.c4
6 files changed, 0 insertions, 35 deletions
diff --git a/config/config.c b/config/config.c
index a11b3056..8d6039cd 100644
--- a/config/config.c
+++ b/config/config.c
@@ -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,
diff --git a/doc/rofi.1 b/doc/rofi.1
index d68444ec..156f61a4 100644
--- a/doc/rofi.1
+++ b/doc/rofi.1
@@ -1198,19 +1198,6 @@ Command to open a Desktop Entry that is a Link.
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
.PP
diff --git a/doc/rofi.1.markdown b/doc/rofi.1.markdown
index 2bb38a3d..1d1f680e 100644
--- a/doc/rofi.1.markdown
+++ b/doc/rofi.1.markdown
@@ -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.
diff --git a/include/settings.h b/include/settings.h
index f37ed9e6..d7bf985c 100644
--- a/include/settings.h
+++ b/include/settings.h
@@ -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 */
diff --git a/source/view.c b/source/view.c
index 7a70823d..2f6b4a73 100644
--- a/source/view.c
+++ b/source/view.c
@@ -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 );
}
diff --git a/source/xrmoptions.c b/source/xrmoptions.c
index 0e89c003..8a3b1c2a 100644
--- a/source/xrmoptions.c
+++ b/source/xrmoptions.c
@@ -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,