aboutsummaryrefslogtreecommitdiff
path: root/backend/x11
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-23 15:19:40 -0400
committerGitHub <noreply@github.com>2017-10-23 15:19:40 -0400
commit1b7918f50e8b22cbaba978c695b7cc5921125c55 (patch)
treef3f881e881ff8e8035776651223f6fbc91d8f050 /backend/x11
parentb74e30be127a0a39d51eac37a7ef86aad376ddab (diff)
parenteea532911a5be8d45770d074546bdeb8a0f16c5b (diff)
Merge pull request #328 from emersion/send-output-current-mode
Send output current mode when changed
Diffstat (limited to 'backend/x11')
-rw-r--r--backend/x11/backend.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c
index d30ec376..0e98b8d9 100644
--- a/backend/x11/backend.c
+++ b/backend/x11/backend.c
@@ -121,9 +121,7 @@ static bool handle_x11_event(struct wlr_x11_backend *x11, xcb_generic_event_t *e
case XCB_CONFIGURE_NOTIFY: {
xcb_configure_notify_event_t *ev = (xcb_configure_notify_event_t *)event;
- output->wlr_output.width = ev->width;
- output->wlr_output.height = ev->height;
- wlr_output_update_matrix(&output->wlr_output);
+ wlr_output_update_size(&output->wlr_output, ev->width, ev->height);
wl_signal_emit(&output->wlr_output.events.resolution, output);
// Move the pointer to its new location