summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2015-04-15 22:41:50 +0200
committerDave Davenport <qball@gmpclient.org>2015-04-15 22:41:50 +0200
commitf64395e4e989830e9a11c72e1447ade32c065e81 (patch)
tree0342d3a0fa20ac44d1d41304731f3266d131e9bd
parenta38ddb3b06a6bbd51c61767e0066faf60f65fbc3 (diff)
Remove unused code
-rw-r--r--config/config.def.c2
-rw-r--r--include/rofi.h2
-rw-r--r--source/dialogs/window.c4
-rw-r--r--source/rofi.c9
4 files changed, 1 insertions, 16 deletions
diff --git a/config/config.def.c b/config/config.def.c
index 6ed24964..95a51df4 100644
--- a/config/config.def.c
+++ b/config/config.def.c
@@ -68,7 +68,7 @@ Settings config = {
.menu_bg_urgent = "#FDF6E3",
.menu_bg_active = "#FDF6E3",
/** Background color alternate row */
- .menu_bg_alt = NULL, //"#EEE8D5",
+ .menu_bg_alt = NULL, //"#EEE8D5",
/** Foreground color (selected) */
.menu_hlfg = "#EEE8D5",
.menu_hlfg_urgent = "#FDF6E3",
diff --git a/include/rofi.h b/include/rofi.h
index 65698430..593214f1 100644
--- a/include/rofi.h
+++ b/include/rofi.h
@@ -274,8 +274,6 @@ struct _Switcher
switcher_free free;
};
-void menu_unmap ( void );
-
#define color_reset "\033[0m"
#define color_bold "\033[1m"
#define color_underline "\033[4m"
diff --git a/source/dialogs/window.c b/source/dialogs/window.c
index 8b27bad8..3bc15447 100644
--- a/source/dialogs/window.c
+++ b/source/dialogs/window.c
@@ -482,10 +482,6 @@ static SwitcherMode window_mode_result ( int mretv, G_GNUC_UNUSED char **input,
retv = selected_line;
}
else if ( ( mretv & ( MENU_OK | MENU_CUSTOM_INPUT ) ) && rmpd->cmd_list[selected_line] ) {
- // Window is going to be removed later (retv == MODE_EXIT).
- // Unmap it first, so (not so)awesomewm does not get confused and give application beneath
- // rofi focus on destory.
- //menu_unmap ();
if ( rmpd->config_i3_mode ) {
// Hack for i3.
i3_support_focus_window ( rmpd->ids->array[selected_line] );
diff --git a/source/rofi.c b/source/rofi.c
index 63337937..16ebdda3 100644
--- a/source/rofi.c
+++ b/source/rofi.c
@@ -116,15 +116,6 @@ Colormap map = None;
XVisualInfo vinfo;
-void menu_unmap ( void )
-{
- if ( main_window != None ) {
- release_keyboard ( display );
- XUnmapWindow ( display, main_window );
- }
-}
-
-
/**
* @param display Connection to the X server.
* @param x11_fd File descriptor from the X server to listen on.