diff --git a/killer/CMakeLists.txt b/killer/CMakeLists.txt index 9bf1c3d776..ef71faa731 100644 --- a/killer/CMakeLists.txt +++ b/killer/CMakeLists.txt @@ -5,6 +5,6 @@ set(kwin_killer_helper_SRCS killer.cpp ) kde4_add_executable(kwin_killer_helper ${kwin_killer_helper_SRCS}) -target_link_libraries(kwin_killer_helper ${KDE4_KDEUI_LIBS} ${X11_X11_LIB}) +target_link_libraries(kwin_killer_helper ${KDE4_KDEUI_LIBS}) install(TARGETS kwin_killer_helper DESTINATION ${LIBEXEC_INSTALL_DIR} ) diff --git a/killer/killer.cpp b/killer/killer.cpp index 9772198aaf..bd99efb267 100644 --- a/killer/killer.cpp +++ b/killer/killer.cpp @@ -30,14 +30,13 @@ DEALINGS IN THE SOFTWARE. #include #include #include -#include -#include #include // TODO: remove with Qt 5, only for HTML escaping the caption #include #include #include #include +#include int main(int argc, char* argv[]) { @@ -61,11 +60,11 @@ int main(int argc, char* argv[]) QString caption = args->getOption("windowname"); QString appname = args->getOption("applicationname"); bool id_ok = false; - Window id = QString(args->getOption("wid")).toULong(&id_ok); + xcb_window_t id = QString(args->getOption("wid")).toULong(&id_ok); bool time_ok = false; - Time timestamp = QString(args->getOption("timestamp")).toULong(&time_ok); + xcb_timestamp_t timestamp = QString(args->getOption("timestamp")).toULong(&time_ok); args->clear(); - if (!pid_ok || pid == 0 || !id_ok || id == None || !time_ok || timestamp == CurrentTime + if (!pid_ok || pid == 0 || !id_ok || id == XCB_WINDOW_NONE || !time_ok || timestamp == XCB_TIME_CURRENT_TIME || hostname.isEmpty() || caption.isEmpty() || appname.isEmpty()) { KCmdLineArgs::usageError(i18n("This helper utility is not supposed to be called directly.")); return 1;