xwayland: send zero scaling to xwayland if enabled
This commit is contained in:
parent
69fae18e63
commit
01f85a09a9
15 changed files with 109 additions and 11 deletions
|
|
@ -28,7 +28,7 @@ void Events::listener_change(wl_listener* listener, void* data) {
|
|||
|
||||
const auto CONFIGHEAD = wlr_output_configuration_head_v1_create(CONFIG, m->output);
|
||||
|
||||
wlr_box BOX;
|
||||
wlr_box BOX;
|
||||
wlr_output_layout_get_box(g_pCompositor->m_sWLROutputLayout, m->output, &BOX);
|
||||
|
||||
//m->vecSize.x = BOX.width;
|
||||
|
|
@ -218,4 +218,11 @@ void Events::listener_monitorCommit(void* owner, void* data) {
|
|||
const auto E = (wlr_output_event_commit*)data;
|
||||
|
||||
g_pProtocolManager->m_pScreencopyProtocolManager->onOutputCommit(PMONITOR, E);
|
||||
|
||||
if (E->committed & (WLR_OUTPUT_STATE_SCALE | WLR_OUTPUT_STATE_TRANSFORM | WLR_OUTPUT_STATE_MODE))
|
||||
g_pXWaylandManager->updateXWaylandScale();
|
||||
}
|
||||
|
||||
void Events::listener_monitorBind(void* owner, void* data) {
|
||||
g_pXWaylandManager->updateXWaylandScale();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue