{"action":"created","issue":{"url":"https://api.github.com/repos/lxde/lxqt-panel/issues/191","labels_url":"https://api.github.com/repos/lxde/lxqt-panel/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/lxde/lxqt-panel/issues/191/comments","events_url":"https://api.github.com/repos/lxde/lxqt-panel/issues/191/events","html_url":"https://github.com/lxde/lxqt-panel/pull/191","id":79709017,"number":191,"title":"Improve multi-monitor support","user":{"login":"paulolieuthier","id":1238157,"avatar_url":"https://avatars.githubusercontent.com/u/1238157?v=3","gravatar_id":"","url":"https://api.github.com/users/paulolieuthier","html_url":"https://github.com/paulolieuthier","followers_url":"https://api.github.com/users/paulolieuthier/followers","following_url":"https://api.github.com/users/paulolieuthier/following{/other_user}","gists_url":"https://api.github.com/users/paulolieuthier/gists{/gist_id}","starred_url":"https://api.github.com/users/paulolieuthier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulolieuthier/subscriptions","organizations_url":"https://api.github.com/users/paulolieuthier/orgs","repos_url":"https://api.github.com/users/paulolieuthier/repos","events_url":"https://api.github.com/users/paulolieuthier/events{/privacy}","received_events_url":"https://api.github.com/users/paulolieuthier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-23T03:26:48Z","updated_at":"2015-05-24T14:44:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/lxde/lxqt-panel/pulls/191","html_url":"https://github.com/lxde/lxqt-panel/pull/191","diff_url":"https://github.com/lxde/lxqt-panel/pull/191.diff","patch_url":"https://github.com/lxde/lxqt-panel/pull/191.patch"},"body":"lxqt-panel is not always resized and repositioned correctly after applying a monitor configuration (e.g. changing screen's resolution). Apparently, that's a bug in Qt. The panel listened to `QDesktopWidget::resized` signal, which was not always emitted. Making it listen to the `workAreaChanged` signal seems to solve the problem.\r\n\r\nThis is an attempt to fix issues like lxde/lxqt#650 and lxde/lxqt#520. Reading `QDesktopWidget`'s [source](https://github.com/qtproject/qtbase/blob/5.4.2/src/widgets/kernel/qdesktopwidget.cpp) helped a little, but this needs testing.\r\n\r\n@pmattern, @Vladimir-csp and @hduff: please, test this if you can.\r\n\r\nThe bug I can reproduce is that after changing my screen's resolution repeatedly, lxqt-panel would eventually not reset its size and position, as it should."},"comment":{"url":"https://api.github.com/repos/lxde/lxqt-panel/issues/comments/105021748","html_url":"https://github.com/lxde/lxqt-panel/pull/191#issuecomment-105021748","issue_url":"https://api.github.com/repos/lxde/lxqt-panel/issues/191","id":105021748,"user":{"login":"pmattern","id":9860801,"avatar_url":"https://avatars.githubusercontent.com/u/9860801?v=3","gravatar_id":"","url":"https://api.github.com/users/pmattern","html_url":"https://github.com/pmattern","followers_url":"https://api.github.com/users/pmattern/followers","following_url":"https://api.github.com/users/pmattern/following{/other_user}","gists_url":"https://api.github.com/users/pmattern/gists{/gist_id}","starred_url":"https://api.github.com/users/pmattern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmattern/subscriptions","organizations_url":"https://api.github.com/users/pmattern/orgs","repos_url":"https://api.github.com/users/pmattern/repos","events_url":"https://api.github.com/users/pmattern/events{/privacy}","received_events_url":"https://api.github.com/users/pmattern/received_events","type":"User","site_admin":false},"created_at":"2015-05-24T14:44:04Z","updated_at":"2015-05-24T14:44:04Z","body":"@paulolieuthier\r\nWill test this PR. But note that the problem I've seen came up sporadically only, so I won't mean a thing if I don't see it again at once."}}