File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 22#include "openbox/client.h"
33
44static gboolean run_func (ObActionsData * data , gpointer options );
5+ static gpointer setup_func (xmlNodePtr node );
56
67void action_iconify_startup (void )
78{
89 actions_register ("Iconify" ,
9- NULL , NULL ,
10+ setup_func ,
11+ NULL ,
1012 run_func );
1113}
1214
15+ static gpointer setup_func (xmlNodePtr node )
16+ {
17+ xmlNodePtr n ;
18+
19+ if ((n = obt_xml_find_node (node , "de" )))
20+ return GINT_TO_POINTER (obt_xml_node_bool (n ));
21+
22+ return GINT_TO_POINTER (0 );
23+ }
24+
1325/* Always return FALSE because its not interactive */
1426static gboolean run_func (ObActionsData * data , gpointer options )
1527{
1628 if (data -> client ) {
1729 actions_client_move (data , TRUE);
18- client_iconify (data -> client , TRUE , TRUE, FALSE);
30+ client_iconify (data -> client , ! options , TRUE, FALSE);
1931 actions_client_move (data , FALSE);
2032 }
2133
You can’t perform that action at this time.
0 commit comments