diff --git a/frontend/mainwindow.cpp b/frontend/mainwindow.cpp index d7195a8..b98459b 100644 --- a/frontend/mainwindow.cpp +++ b/frontend/mainwindow.cpp @@ -403,16 +403,16 @@ void MainWindow::centerToScreen(QWidget* widget) { int desk_y = desk_rect.height(); int x = widget->width(); int y = widget->height(); - QDBusInterface primaryScreenInterface("org.ukui.SettingsDaemon", - "/org/ukui/SettingsDaemon/wayland", - "org.ukui.SettingsDaemon.wayland", - QDBusConnection::sessionBus()); - if(QDBusReply(primaryScreenInterface.call("x")).isValid()) { - QDBusReply width = primaryScreenInterface.call("width"); - QDBusReply height = primaryScreenInterface.call("height"); - desk_x = width; - desk_y = height; - } +// QDBusInterface primaryScreenInterface("org.ukui.SettingsDaemon", +// "/org/ukui/SettingsDaemon/wayland", +// "org.ukui.SettingsDaemon.wayland", +// QDBusConnection::sessionBus()); +// if(QDBusReply(primaryScreenInterface.call("x")).isValid()) { +// QDBusReply width = primaryScreenInterface.call("width"); +// QDBusReply height = primaryScreenInterface.call("height"); +// desk_x = width; +// desk_y = height; +// } widget->move(desk_x / 2 - x / 2 + desk_rect.left(), desk_y / 3 + desk_rect.top()); }