Skip navigation.

Beyond the Sky

The place where surface stop and share the experience of life

Hacking the code to gain some tweak of fluxbox

, ,

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
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.

Merry Christmasncurses matrix!

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies

December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31