aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-05-13 11:47:29 (GMT)
committerfluxgen <fluxgen>2003-05-13 11:47:29 (GMT)
commit2afb87a4e48058aba8e58c37c6e4da62c5b8e80c (patch)
tree35b5c2cf75854ad4fa52b7ba3eb9c1a2991b9017
parent33130ce0a6c5aaa3d1776d5bd4e373f0afc9d288 (diff)
downloadfluxbox_paul-2afb87a4e48058aba8e58c37c6e4da62c5b8e80c.zip
fluxbox_paul-2afb87a4e48058aba8e58c37c6e4da62c5b8e80c.tar.bz2
minor fix
-rw-r--r--src/FbAtoms.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FbAtoms.cc b/src/FbAtoms.cc
index 8a7034d..0271a56 100644
--- a/src/FbAtoms.cc
+++ b/src/FbAtoms.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: FbAtoms.cc,v 1.7 2003/04/26 18:56:02 fluxgen Exp $ 22// $Id: FbAtoms.cc,v 1.8 2003/05/13 11:47:29 fluxgen Exp $
23 23
24#include "FbAtoms.hh" 24#include "FbAtoms.hh"
25#include "App.hh" 25#include "App.hh"
@@ -52,6 +52,8 @@ FbAtoms *FbAtoms::instance() {
52 52
53void FbAtoms::initAtoms() { 53void FbAtoms::initAtoms() {
54 Display *display = FbTk::App::instance()->display(); 54 Display *display = FbTk::App::instance()->display();
55 if (display == 0)
56 return;
55 57
56 xa_wm_protocols = XInternAtom(display, "WM_PROTOCOLS", False); 58 xa_wm_protocols = XInternAtom(display, "WM_PROTOCOLS", False);
57 xa_wm_state = XInternAtom(display, "WM_STATE", False); 59 xa_wm_state = XInternAtom(display, "WM_STATE", False);