mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
Remove unused code
This commit is contained in:
parent
a38ddb3b06
commit
f64395e4e9
4 changed files with 1 additions and 16 deletions
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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] );
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue