yeeted gdk, doesn't seem to do much

This commit is contained in:
vaxerski 2021-11-26 21:44:40 +01:00
parent df08ada531
commit 47fa04b5ac
3 changed files with 1 additions and 4 deletions

View File

@ -9,7 +9,7 @@ add_compile_options(-Wall -Wextra)
find_package(Threads REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(deps REQUIRED IMPORTED_TARGET glib-2.0 harfbuzz cairo gdk)
pkg_check_modules(deps REQUIRED IMPORTED_TARGET glib-2.0 harfbuzz cairo gtk4)
file(GLOB_RECURSE SRCFILES "src/*.cpp")

View File

@ -30,7 +30,6 @@ gpointer handle(gpointer data) {
void Events::setThread() {
// Start a GTK thread so that Cairo does not complain.
gdk_threads_enter();
g_pWindowManager->barThread = g_thread_new("Bar", handle, nullptr);

View File

@ -52,8 +52,6 @@ int main(int argc, char** argv) {
xcb_disconnect(g_pWindowManager->DisplayConnection);
gdk_threads_leave();
if (const auto err = xcb_connection_has_error(g_pWindowManager->DisplayConnection); err != 0) {
Debug::log(CRIT, "Exiting because of error " + std::to_string(err));
return err;