mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
action: If we have a view that is an activator, use that instead of the current focus window
If we don't switch focus, we want the close button to close the window associated with it, not the current focus window. Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
parent
f9f9d809c8
commit
d568c60003
5 changed files with 26 additions and 20 deletions
|
|
@ -416,7 +416,7 @@ menu_action_selected(struct server *server, struct menu *menu)
|
|||
struct menuitem *menuitem;
|
||||
wl_list_for_each (menuitem, &menu->menuitems, link) {
|
||||
if (menuitem->selected && !menuitem->submenu) {
|
||||
action(server, menuitem->action, menuitem->command, 0);
|
||||
action(NULL, server, menuitem->action, menuitem->command, 0);
|
||||
break;
|
||||
}
|
||||
if (menuitem->submenu) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue