aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-06-26 12:22:43 (GMT)
committerrathnor <rathnor>2003-06-26 12:22:43 (GMT)
commit4993e2f36331299aba6a42df2896e49d4c98b111 (patch)
treee130579b68dbf4244913e676060d0f6fd624140b /src/Window.cc
parenta1eb047c00e96295e482564311db9075d05ce034 (diff)
downloadfluxbox-4993e2f36331299aba6a42df2896e49d4c98b111.zip
fluxbox-4993e2f36331299aba6a42df2896e49d4c98b111.tar.bz2
speedups for having lots of stuck windows
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc12
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
1288void FluxboxWindow::setWorkspace(int n) { 1288void 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
1302void FluxboxWindow::setLayerNum(int layernum) { 1305void 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