To fully solve the problem we first additionally need to:

1. Use the same shortcut for unmaximize_or_minimize_window_key and
put_restore_key

2. In the bool GridScreen::restoreWindow (...) method we would need
something like this:

/* if the same shortcut is set and grid is running */
If (unmaximize_or_minimize_window_key==put_restore_key)
{
    /* We want to use the same functionality like the 
unmaximize_or_minimize_window
     * shortcut normally provides, so if our window has not been touched by 
grid, we
     * will do the same with that window that core would normally do
     * (see src/actions.cpp, unmaximizeOrMinimizeWin)
     * Core will take over again, if grid gets disabled
     */
    if (cw && !gw->isGridResized && !gw->isGridHorzMaximized && 
!gw->isGridVertMaximized)
    {
        if (cw->state () & MAXIMIZE_STATE)
            cw->maximize (0);

        else if (cw->actions () & CompWindowActionMinimizeMask)
            cw->minimize ();
    }
}

I will propose the fix, once the other branch is merged to not confuse the 
reviewers even more...
(got it working and running here locally already :))

-- 
You received this bug notification because you are a member of compiz
packagers, which is subscribed to compiz in Ubuntu.
https://bugs.launchpad.net/bugs/1116538

Title:
  Strg + Super + Down does not work for windows placed in corners or
  top/bottom half

To manage notifications about this bug go to:
https://bugs.launchpad.net/ayatana-design/+bug/1116538/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~compiz
Post to     : compiz@lists.launchpad.net
Unsubscribe : https://launchpad.net/~compiz
More help   : https://help.launchpad.net/ListHelp

Reply via email to