Hacking the code to gain some tweak of fluxbox
Tuesday, 2. January 2007, 09:51:51
This is the first request of mine that can't be fulfill by just edit the configuration file. I need to hack the source code, lucky my fluxbox is compiled myself, so that can be done easily.
What is my requirement?
I need to maximize the windows when I double click on the title bar of the windows. By default, it will be shaded instead of maximize.Asking around in the #fluxbox channel, people throw me this
http://fluxbox-wiki.org/index.php/Howto_Make_dblclick_titlebar_maximize
Simply How?
The source code is in src folder. Edit Windows.cc, search for
and replace it to
Save the file, and you now can configure, make and make install.
Refers to http://my.opera.com/mysurface/blog/i-recompile-my-fluxbox-from-source for compilation.
What is my requirement?
I need to maximize the windows when I double click on the title bar of the windows. By default, it will be shaded instead of maximize.Asking around in the #fluxbox channel, people throw me this
http://fluxbox-wiki.org/index.php/Howto_Make_dblclick_titlebar_maximize
Simply How?
The source code is in src folder. Edit Windows.cc, search for
frame().setOnClickTitlebar(shade_cmd, 1,true); // doubleclick with button 1
and replace it to
frame().setOnClickTitlebar(maximize_cmd, 1,true); // doubleclick with button 1
Save the file, and you now can configure, make and make install.
Refers to http://my.opera.com/mysurface/blog/i-recompile-my-fluxbox-from-source for compilation.















How to use Quote function: