Skip to content

Commit

Permalink
Backing out my changes to try to fix icons on KDE, because they didn'…
Browse files Browse the repository at this point in the history
…t work.
  • Loading branch information
Michael Zahniser authored and TJesionowski committed Oct 2, 2018
1 parent deadecf commit e7a1b0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
3 changes: 1 addition & 2 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ env.Append(LIBS = [
"GL",
"GLEW",
"openal",
"pthread",
"X11"
"pthread"
]);
# libmad is not in the Steam runtime, so link it statically:
if 'SCHROOT_CHROOT_NAME' in os.environ and 'steamrt_scout_i386' in os.environ['SCHROOT_CHROOT_NAME']:
Expand Down
25 changes: 0 additions & 25 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details.

#include "gl_header.h"
#include <SDL2/SDL.h>
#ifdef __linux__
namespace X {
// Some X11 class names introduce conflicts in the global namespace.
#include <SDL2/SDL_syswm.h>
}
#endif

#include <cstring>
#include <iostream>
Expand Down Expand Up @@ -412,25 +406,6 @@ void SetIcon(SDL_Window *window)
}
// Free the image buffer.
delete buffer;

#ifdef __linux__
// If this is an X11 window, set the icon name hint.
X::SDL_SysWMinfo info;
SDL_GetWindowWMInfo(window, &info);
if(info.subsystem == X::SDL_SYSWM_X11)
{
X::XClientMessageEvent m;
memset(&m, 0, sizeof(m));
m.type = ClientMessage;
m.display = info.info.x11.display;
m.window = info.info.x11.window;
m.message_type = (X::Atom)37;
m.format = 8;
strcpy(m.data.b, "endless-sky");
X::XSendEvent(m.display, m.window, false, NoEventMask, (X::XEvent *)&m);
X::XFlush(m.display);
}
#endif
}


Expand Down

0 comments on commit e7a1b0d

Please sign in to comment.