Improve Chatterino extension positioning (#1825)

This adds support for left-side chat
This commit is contained in:
Matthew Marlow
2020-08-01 06:42:56 -07:00
committed by GitHub
parent 214afc8fc2
commit e5f3bc9f3f
3 changed files with 21 additions and 5 deletions
+2 -1
View File
@@ -198,11 +198,12 @@ void NativeMessagingServer::ReceiverThread::handleMessage(
AttachedWindow::GetArgs args;
args.winId = root.value("winId").toString();
args.yOffset = root.value("yOffset").toInt(-1);
args.x = root.value("size").toObject().value("x").toInt(-1);
args.width = root.value("size").toObject().value("width").toInt(-1);
args.height = root.value("size").toObject().value("height").toInt(-1);
args.fullscreen = attachFullscreen;
qDebug() << args.width << args.height << args.winId;
qDebug() << args.x << args.width << args.height << args.winId;
if (_type.isNull() || args.winId.isNull())
{