VirtualBox

Ignore:
Timestamp:
Apr 1, 2016 3:50:39 PM (9 years ago)
Author:
vboxsync
Message:

bugref:8087: Additions/x11: support non-root X server: set up mouse multi-screen input mapping correctly in kernel video driver, second try.

Location:
trunk/src/VBox/Additions/linux/drm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.h

    r60285 r60290  
    123123    bool fbdev_init;
    124124    struct work_struct hotplug_work;
     125    uint32_t input_mapping_width;
     126    uint32_t input_mapping_height;
    125127};
    126128
  • trunk/src/VBox/Additions/linux/drm/vbox_mode.c

    r60285 r60290  
    237237    /* vbox_set_start_address_crt1(crtc, (u32)gpu_addr); */
    238238    vbox_crtc->fb_offset = gpu_addr;
    239     if (vbox_crtc->crtc_id == 0)
    240         VBoxHGSMIUpdateInputMapping(&vbox->submit_info, 0, 0,
    241                                     CRTC_FB(crtc)->width,
    242                                     CRTC_FB(crtc)->height);
    243 
     239    if (vbox_crtc->crtc_id == 0) {
     240        vbox->input_mapping_width = CRTC_FB(crtc)->width;
     241        vbox->input_mapping_height = CRTC_FB(crtc)->height;
     242    }
    244243    LogFunc(("vboxvideo: %d: vbox_fb=%p, obj=%p, bo=%p, gpu_addr=%u\n",
    245244             __LINE__, vbox_fb, obj, bo, (unsigned)gpu_addr));
     
    269268    if (!rc)
    270269        vbox_do_modeset(crtc, mode);
     270    /* Note that the input mapping is always relative to the first screen. */
     271    VBoxHGSMIUpdateInputMapping(&vbox->submit_info, 0, 0,
     272                                vbox->input_mapping_width,
     273                                vbox->input_mapping_height);
    271274    mutex_unlock(&vbox->hw_mutex);
    272275    LogFunc(("vboxvideo: %d\n", __LINE__));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette