Maximus: Consider the full_maximize window attribute
commit92eff967a7c4d3489d97b876605f2d9f9d4e765c
authorCarlos R. Mafra <crmafra@gmail.com>
Wed, 16 Sep 2009 19:54:58 +0000 (16 21:54 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 16 Sep 2009 22:46:14 +0000 (17 00:46 +0200)
tree79807aac0e02c949ad987276a8de5ed07250c353
parenteaca92db50a59aca797f8bf112ac664e94d277a2
Maximus: Consider the full_maximize window attribute

When maximumizing a window which has the full_maximize attribute
set we have to consider two possibilities:

    1. If the new y coordinate is zero it means that no other
       window blocked its maximumization up to the top of the
       screen, so we want to put the titlebar outside.

    2. If the new y coordinate is not zero it means that another
       window in the current workspace blocked its way to y = 0.
       In this case we do nothing with the titlebar.

Note that there is another possible fine tunning which is not
addressed in this patch, which is to consider the resize bar.
src/actions.c