Commit 40294ff4 authored by Rafał Malinowski's avatar Rafał Malinowski

core: remove unused code

Signed-off-by: Rafał Malinowski's avatarRafał Malinowski <rafal.przemyslaw.malinowski@gmail.com>
parent 01a3f186
......@@ -48,9 +48,6 @@
KaduApplication::KaduApplication(int &argc, char *argv[]) :
QApplication(argc, argv)
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
, net_wm_state{}
#endif // defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
{
setApplicationName("Kadu");
setQuitOnLastWindowClosed(false);
......@@ -59,19 +56,6 @@ KaduApplication::KaduApplication(int &argc, char *argv[]) :
// Fix for #2491
setStyleSheet("QToolBar{border:0px}");
#endif
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
xfixes_event_base = -1;
int dummy;
if (XFixesQueryExtension(QX11Info::display(), &xfixes_event_base, &dummy))
{
net_wm_state = XInternAtom(QX11Info::display(), "_NET_WM_CM_S0", False);
XFixesSelectSelectionInput(QX11Info::display(), QX11Info::appRootWindow(0) , net_wm_state,
XFixesSetSelectionOwnerNotifyMask |
XFixesSelectionWindowDestroyNotifyMask |
XFixesSelectionClientCloseNotifyMask);
}
#endif // defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
}
#include "moc_kadu-application.cpp"
......@@ -37,30 +37,12 @@
#include <QtWidgets/QApplication>
#ifdef Q_OS_MAC
#include <Carbon/Carbon.h>
#endif // Q_OS_MAC
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
#include <X11/Xdefs.h>
#undef KeyPress
#undef Status
#endif // defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
#include "exports.h"
class KADUAPI KaduApplication : public QApplication
{
Q_OBJECT
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
Atom net_wm_state;
int xfixes_event_base;
#endif // defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
#ifdef Q_OS_MAC
AEEventHandlerUPP m_appleEventProcessorUPP;
#endif // Q_OS_MAC
public:
KaduApplication(int &argc, char *argv[]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment