diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-03 10:32:21 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-03 10:32:21 +0200 |
| commit | df6a3c687702e1d66215ff77aa97a003897f4140 (patch) | |
| tree | 15821d5f84da9e147172e998240140563868f76d /src/render/Renderer.cpp | |
| parent | 9d06c612428d6e72faf99d088f6431fc2cf8e919 (diff) | |
fix non-gdk popups on multimon
Diffstat (limited to 'src/render/Renderer.cpp')
| -rw-r--r-- | src/render/Renderer.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 276b4556..974ab663 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -18,12 +18,6 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) { double outputX = 0, outputY = 0; wlr_output_layout_output_coords(g_pCompositor->m_sWLROutputLayout, RDATA->output, &outputX, &outputY); - if (RDATA->pMonitor) { // BUG THIS TODO: this is just to show the popup on a monitor that isnt at 0,0 - // the popups are broken. - x -= ((SMonitor*)RDATA->pMonitor)->vecPosition.x; - y -= ((SMonitor*)RDATA->pMonitor)->vecPosition.y; - } - wlr_box windowBox; if (RDATA->surface && surface == RDATA->surface) { windowBox = {(int)outputX + RDATA->x + x, (int)outputY + RDATA->y + y, RDATA->w, RDATA->h}; |
