Skip to contentSkip to conversation

qxl: drop update_displaychangelistener call for secondary qxl devices

PATCH In review Gerd Hoffmann 2 participants 2 messages Mar 2, 2015 – Mar 3, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qxl: drop update_displaychangelistener call for secondary qxl devices

Commit 3dcadce5076d4b42fa395c39662d65e050b77784 added three update_displaychangelistener call sites:

Two for primary qxl cards, when entering/leaving vga mode, which are correct.

One for secondary qxl cards, which is wrong because we don't register a displaychangelistener in the first place for secondary cards.

Remove it.

---
 hw/display/qxl.c | 1 -
 1 file changed, 1 deletion(-)
hw/display/qxl.c +0 -1
index 94ff52a..762f75d 100644
@@ -1147,7 +1147,6 @@ static void qxl_soft_reset(PCIQXLDevice *d)
         qxl_enter_vga_mode(d);
     } else {
         d->mode = QXL_MODE_UNDEFINED;
-        update_displaychangelistener(&d->ssd.dcl, GUI_REFRESH_INTERVAL_IDLE);
     }
 }
 
Signature · 1 line
1.8.3.1
Tested-by on v1 1/1
#1 lore raw
Quoted 6 lines · Gerd Hoffmann

Commit 3dcadce5076d4b42fa395c39662d65e050b77784 added three update_displaychangelistener call sites:

Two for primary qxl cards, when entering/leaving vga mode, which are correct.

Quoted 7 lines

One for secondary qxl cards, which is wrong because we don't register a displaychangelistener in the first place for secondary cards.

Remove it.

Quoted 10 lines
---
  hw/display/qxl.c | 1 -
  1 file changed, 1 deletion(-)
hw/display/qxl.c +0 -0
index 94ff52a..762f75d 100644

hw/display/qxl.c static void qxl_soft_reset(PCIQXLDevice *d) · line 1152

Quoted 7 lines
hw/display/qxl.c +0 -1
@@ -1147,7 +1147,6 @@ static void qxl_soft_reset(PCIQXLDevice *d)
          qxl_enter_vga_mode(d);
      } else {
          d->mode = QXL_MODE_UNDEFINED;
-        update_displaychangelistener(&d->ssd.dcl, GUI_REFRESH_INTERVAL_IDLE);
      }
  }
 

Many thanks for the rapid response Gerd.

Regards,
Brad