remove the dialog options
This commit is contained in:
parent
90445487e1
commit
ad29434250
4 changed files with 2 additions and 25 deletions
|
@ -343,19 +343,6 @@ static void parse_dock(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, void *d)
|
|||
}
|
||||
}
|
||||
|
||||
static void parse_dialog(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
|
||||
void *d)
|
||||
{
|
||||
xmlNodePtr n;
|
||||
|
||||
node = node->children;
|
||||
|
||||
if ((n = parse_find_node("focus", node)))
|
||||
config_dialog_focus = parse_bool(doc, n);
|
||||
if ((n = parse_find_node("desktop", node)))
|
||||
config_dialog_desktop = parse_bool(doc, n);
|
||||
}
|
||||
|
||||
static void parse_menu(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, void *d)
|
||||
{
|
||||
for (node = node->children; node; node = node->next) {
|
||||
|
@ -542,11 +529,6 @@ void config_startup(ObParseInst *i)
|
|||
|
||||
parse_register(i, "resistance", parse_resistance, NULL);
|
||||
|
||||
config_dialog_focus = TRUE;
|
||||
config_dialog_desktop = TRUE;
|
||||
|
||||
parse_register(i, "dialog", parse_dialog, NULL);
|
||||
|
||||
config_menu_files = NULL;
|
||||
|
||||
parse_register(i, "menu", parse_menu, NULL);
|
||||
|
|
|
@ -93,11 +93,6 @@ extern gint config_resist_win;
|
|||
/*! Number of pixels to resist while crossing a screen's edge */
|
||||
extern gint config_resist_edge;
|
||||
|
||||
/*! Show a dialog while cycling focus between windows */
|
||||
extern gboolean config_dialog_focus;
|
||||
/*! Show a dialogs while switching between desktops */
|
||||
extern gboolean config_dialog_desktop;
|
||||
|
||||
/*! User-specified menu files */
|
||||
extern GSList *config_menu_files;
|
||||
|
||||
|
|
|
@ -232,7 +232,7 @@ void focus_fallback(ObFocusFallbackType type)
|
|||
|
||||
static void popup_cycle(ObClient *c, gboolean show)
|
||||
{
|
||||
if (!show || !config_dialog_focus) {
|
||||
if (!show) {
|
||||
icon_popup_hide(focus_cycle_popup);
|
||||
} else {
|
||||
Rect *a;
|
||||
|
|
|
@ -572,7 +572,7 @@ void screen_desktop_popup(guint d, gboolean show)
|
|||
{
|
||||
Rect *a;
|
||||
|
||||
if (!show || !config_dialog_desktop) {
|
||||
if (!show) {
|
||||
pager_popup_hide(desktop_cycle_popup);
|
||||
} else {
|
||||
a = screen_physical_area_monitor(0);
|
||||
|
|
Loading…
Reference in a new issue