diff options
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/Window.cc b/src/Window.cc index 464210c..380df19 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Window.cc,v 1.198 2003/06/25 13:37:06 fluxgen Exp $ | 25 | // $Id: Window.cc,v 1.199 2003/06/26 12:22:43 rathnor Exp $ |
26 | 26 | ||
27 | #include "Window.hh" | 27 | #include "Window.hh" |
28 | 28 | ||
@@ -1286,6 +1286,7 @@ void FluxboxWindow::maximizeVertical() { | |||
1286 | 1286 | ||
1287 | 1287 | ||
1288 | void FluxboxWindow::setWorkspace(int n) { | 1288 | void FluxboxWindow::setWorkspace(int n) { |
1289 | unsigned int old_wkspc = m_workspace_number; | ||
1289 | 1290 | ||
1290 | m_workspace_number = n; | 1291 | m_workspace_number = n; |
1291 | 1292 | ||
@@ -1293,10 +1294,12 @@ void FluxboxWindow::setWorkspace(int n) { | |||
1293 | m_blackbox_attrib.workspace = m_workspace_number; | 1294 | m_blackbox_attrib.workspace = m_workspace_number; |
1294 | 1295 | ||
1295 | // notify workspace change | 1296 | // notify workspace change |
1297 | if (!stuck && old_wkspc != m_workspace_number) { | ||
1296 | #ifdef DEBUG | 1298 | #ifdef DEBUG |
1297 | cerr<<this<<" notify workspace signal"<<endl; | 1299 | cerr<<this<<" notify workspace signal"<<endl; |
1298 | #endif // DEBUG | 1300 | #endif // DEBUG |
1299 | m_workspacesig.notify(); | 1301 | m_workspacesig.notify(); |
1302 | } | ||
1300 | } | 1303 | } |
1301 | 1304 | ||
1302 | void FluxboxWindow::setLayerNum(int layernum) { | 1305 | void FluxboxWindow::setLayerNum(int layernum) { |
@@ -1354,6 +1357,9 @@ void FluxboxWindow::stick() { | |||
1354 | } | 1357 | } |
1355 | 1358 | ||
1356 | setState(m_current_state); | 1359 | setState(m_current_state); |
1360 | // notify since some things consider "stuck" to be a pseudo-workspace | ||
1361 | m_workspacesig.notify(); | ||
1362 | |||
1357 | } | 1363 | } |
1358 | 1364 | ||
1359 | 1365 | ||