GNOME Bugzilla – Bug 92842
Tasklist window menu should popup under mouse
Last modified: 2005-01-28 16:54:22 UTC
When you 2nd click over a window in the task list, you get the window menu (Minimize, Close...). This menu always popups at the begining of window tasklist button. If you have "big" button windows, and you click in the right side, the menu popups very far away in the left. I'll try to ascii- draw it: ----- | | --> Menu here _______________________|___|________________ | | X | | Window1 | Window 2 | \------------------------------------------/ X --> Click here In this case, the user needs to "nagivate" too much screen with the mouse. The correct behaviour (from an usability a comodity point of view) should be to popup up the menu just where the user clicked (just like when you 2nd click on the panel).
agreed
See also #87184 when refining popup algorithm
*** Bug 98925 has been marked as a duplicate of this bug. ***
*** Bug 97959 has been marked as a duplicate of this bug. ***
Created attachment 36625 [details] [review] teeny tiny patch to do that Here is a patch to show the right-click menu close to the mouse cursor. If the cursor is close to an end of the clicked task button, the menu snaps to the edge of the button. The algorithm is totally stolen from Vincent's patch in bug 116028. It works wonders.
I haven't tried it out, but the idea sounds good.
I think the one who came with this idea is a wonderful guy ;-) This sounds sane to me. But you'll probably want to ask Havoc or Mark before committing.
Moving to the right component. Sorry for the spam.
Comment on attachment 36625 [details] [review] teeny tiny patch to do that looks reasonable to me, thanks.
I won't be able to commit before next monday, so anyone (Vincent ?) please commit if you feel like it :-)
Committed. 2005-01-28 Elijah Newren <newren@gmail.com> Patch from Vincent Noel to make the tasklist window menu popup near the mouse pointer. Fixes #92842. * libwnck/tasklist.c: (wnck_task_position_menu): get the pointer location and adjust the menu location accordingly