From 6dd9a73c50f1de88580508dc41f2e414c6a06e0a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 9 Apr 2014 19:29:40 +0000 Subject: Rename TDE-specific atoms to avoid stomping on KDE atom names --- tdecore/twin.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tdecore') diff --git a/tdecore/twin.cpp b/tdecore/twin.cpp index e96c25011..308da8c5a 100644 --- a/tdecore/twin.cpp +++ b/tdecore/twin.cpp @@ -77,20 +77,20 @@ static void twin_net_create_atoms() { names[n++] = "_NET_WM_CONTEXT_HELP"; atoms[n] = &kde_wm_change_state; - names[n++] = "_KDE_WM_CHANGE_STATE"; - + names[n++] = "_TDE_WM_CHANGE_STATE"; + atoms[n] = &kde_wm_window_opacity; - names[n++] = (char*) "_KDE_WM_WINDOW_OPACITY"; + names[n++] = (char*) "_TDE_WM_WINDOW_OPACITY"; atoms[n] = &kde_wm_window_shadow; - names[n++] = (char*) "_KDE_WM_WINDOW_SHADOW"; + names[n++] = (char*) "_TDE_WM_WINDOW_SHADOW"; char net_wm_cm_name[ 100 ]; sprintf( net_wm_cm_name, "_NET_WM_CM_S%d", DefaultScreen( tqt_xdisplay())); atoms[n] = &net_wm_cm; names[n++] = net_wm_cm_name; - // we need a const_cast for the shitty X API + // we need a const_cast for the horrible X API XInternAtoms( tqt_xdisplay(), const_cast(names), n, false, atoms_return ); for (int i = 0; i < n; i++ ) *atoms[i] = atoms_return[i]; -- cgit v1.2.1