mirror of
https://github.com/elementary/gala.git
synced 2024-12-25 10:13:04 +03:00
Merged with lp:~niels-avonds/gala/gala-fix-1008188
This commit is contained in:
commit
ef0211d7a5
@ -486,9 +486,14 @@ namespace Gala
|
||||
|
||||
switch_workspace_completed ();
|
||||
|
||||
var focus = get_next_window (screen.get_active_workspace ());
|
||||
if (focus != null)
|
||||
focus.activate (screen.get_display ().get_current_time ());
|
||||
var focus = screen.get_display ().get_tab_current (Meta.TabList.NORMAL, screen, screen.get_active_workspace ());
|
||||
// Only switch focus to the next window if none has grabbed it already
|
||||
if (focus == null) {
|
||||
focus = get_next_window (screen.get_active_workspace ());
|
||||
if (focus != null)
|
||||
focus.activate (screen.get_display ().get_current_time ());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public override void unmaximize (Meta.WindowActor actor, int ex, int ey, int ew, int eh)
|
||||
|
Loading…
Reference in New Issue
Block a user