mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Prevent switch to different workspace when minimizing last window on current workspace.
This commit is contained in:
parent
7760130feb
commit
7c4628dfa1
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* $Id$
|
* $Id$
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012 Sanel Zukan
|
* Copyright (C) 2012-2013 Sanel Zukan
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
@ -310,6 +310,7 @@ void Taskbar::activate_window(TaskButton *b) {
|
|||||||
|
|
||||||
if(prev_active &&
|
if(prev_active &&
|
||||||
prev_active != b &&
|
prev_active != b &&
|
||||||
|
prev_active->get_workspace() == b->get_workspace() &&
|
||||||
wm_window_get_state(prev_active->get_window_xid()) != WM_WINDOW_STATE_ICONIC)
|
wm_window_get_state(prev_active->get_window_xid()) != WM_WINDOW_STATE_ICONIC)
|
||||||
{
|
{
|
||||||
xid = prev_active->get_window_xid();
|
xid = prev_active->get_window_xid();
|
||||||
|
Loading…
Reference in New Issue
Block a user