aboutsummaryrefslogtreecommitdiff
path: root/src/Ewmh.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-06-07 11:46:05 (GMT)
committerrathnor <rathnor>2004-06-07 11:46:05 (GMT)
commitfff4456dee29e675d7f2ed3490db39bcb7e10e53 (patch)
tree2d2dbf386551773cbdc8231b2a93b493187bd733 /src/Ewmh.cc
parent073065ac56b388db1169108d44f37d32f1d19c67 (diff)
downloadfluxbox-fff4456dee29e675d7f2ed3490db39bcb7e10e53.zip
fluxbox-fff4456dee29e675d7f2ed3490db39bcb7e10e53.tar.bz2
update NLS string handling...
Diffstat (limited to 'src/Ewmh.cc')
-rw-r--r--src/Ewmh.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Ewmh.cc b/src/Ewmh.cc
index 64583cc..ff09588 100644
--- a/src/Ewmh.cc
+++ b/src/Ewmh.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Ewmh.cc,v 1.45 2004/03/07 23:37:39 rathnor Exp $ 22// $Id: Ewmh.cc,v 1.46 2004/06/07 11:46:04 rathnor Exp $
23 23
24#include "Ewmh.hh" 24#include "Ewmh.hh"
25 25
@@ -30,6 +30,7 @@
30#include "fluxbox.hh" 30#include "fluxbox.hh"
31 31
32#include "FbTk/FbWindow.hh" 32#include "FbTk/FbWindow.hh"
33#include "FbTk/I18n.hh"
33 34
34#include <iostream> 35#include <iostream>
35#include <algorithm> 36#include <algorithm>
@@ -244,10 +245,11 @@ void Ewmh::updateClientList(BScreen &screen) {
244 for (; icon_it != icon_it_end; ++icon_it) { 245 for (; icon_it != icon_it_end; ++icon_it) {
245 num += (*icon_it)->numClients(); 246 num += (*icon_it)->numClients();
246 } 247 }
247 248
248 Window *wl = new (nothrow) Window[num]; 249 Window *wl = new (nothrow) Window[num];
249 if (wl == 0) { 250 if (wl == 0) {
250 cerr<<"Fatal: Out of memory, can't allocate for Ewmh client list"<<endl; 251 _FB_USES_NLS;
252 cerr<<_FBTEXT(Ewmh, OutOfMemoryClientList, "Fatal: Out of memory, can't allocate for EWMH client list", "")<<endl;
251 return; 253 return;
252 } 254 }
253 255
@@ -594,7 +596,6 @@ bool Ewmh::checkClientMessage(const XClientMessageEvent &ce,
594 } else if (ce.message_type == m_net_close_window) { 596 } else if (ce.message_type == m_net_close_window) {
595 if (winclient == 0) 597 if (winclient == 0)
596 return true; 598 return true;
597 cerr<<"We got _NET_CLOSE_WINDOW!"<<endl;
598 // ce.window = window to close (which in this case is the win argument) 599 // ce.window = window to close (which in this case is the win argument)
599 winclient->sendClose(); 600 winclient->sendClose();
600 return true; 601 return true;