[Bug 1799792] Re: Broken scaling with gtk,gl=on on a hidpi display

2020-11-13 Thread Sebastian Krzyszkowiak
Still happening in QEMU 5.1.0

** Changed in: qemu
   Status: Incomplete => New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1799792

Title:
  Broken scaling with gtk,gl=on on a hidpi display

Status in QEMU:
  New

Bug description:
  Tested on QEMU 3.0.0 on Arch Linux.

  I'm using a hidpi screen, and therefore use those environment
  variables in order to have GTK+ apps properly scaled:

  GDK_SCALE=2
  GDK_DPI_SCALE=0.5

  However, QEMU, when launched with "-display gtk,gl=on" option, doesn't
  scale the window content properly, as seen on the attached screenshot.

  Switching to "-display gtk,gl=off" and "-display sdl,gl=on" makes it
  work fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1799792/+subscriptions



[Qemu-devel] [Bug 1799792] [NEW] Broken scaling with gtk, gl=on on a hidpi display

2018-10-24 Thread Sebastian Krzyszkowiak
Public bug reported:

Tested on QEMU 3.0.0 on Arch Linux.

I'm using a hidpi screen, and therefore use those environment variables
in order to have GTK+ apps properly scaled:

GDK_SCALE=2
GDK_DPI_SCALE=0.5

However, QEMU, when launched with "-display gtk,gl=on" option, doesn't
scale the window content properly, as seen on the attached screenshot.

Switching to "-display gtk,gl=off" and "-display sdl,gl=on" makes it
work fine.

** Affects: qemu
 Importance: Undecided
 Status: New

** Attachment added: "Screenshot_20181024_222447.png"
   
https://bugs.launchpad.net/bugs/1799792/+attachment/5205039/+files/Screenshot_20181024_222447.png

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1799792

Title:
  Broken scaling with gtk,gl=on on a hidpi display

Status in QEMU:
  New

Bug description:
  Tested on QEMU 3.0.0 on Arch Linux.

  I'm using a hidpi screen, and therefore use those environment
  variables in order to have GTK+ apps properly scaled:

  GDK_SCALE=2
  GDK_DPI_SCALE=0.5

  However, QEMU, when launched with "-display gtk,gl=on" option, doesn't
  scale the window content properly, as seen on the attached screenshot.

  Switching to "-display gtk,gl=off" and "-display sdl,gl=on" makes it
  work fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1799792/+subscriptions



[Qemu-devel] [PATCH] SDL: set a hint to not bypass the window compositor

2018-10-24 Thread Sebastian Krzyszkowiak
Without that, window effects in KWin get suspended as soon as any
qemu-sdl window becomes visible. While the SDL default makes sense
for games, it's not really suitable for QEMU.

Signed-off-by: Sebastian Krzyszkowiak 
---
 ui/sdl2.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ui/sdl2.c b/ui/sdl2.c
index 2696b95c79..a10b6e3a08 100644
--- a/ui/sdl2.c
+++ b/ui/sdl2.c
@@ -786,6 +786,9 @@ static void sdl2_display_init(DisplayState *ds, 
DisplayOptions *o)
 SDL_GetError());
 exit(1);
 }
+#ifdef SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR /* only available since SDL 
2.0.8 */
+SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0");
+#endif
 SDL_SetHint(SDL_HINT_GRAB_KEYBOARD, "1");
 memset(, 0, sizeof(info));
 SDL_VERSION();
-- 
2.19.1