GtkPlug scaled to half the expected size on HiDPI screens + zesty debdiff
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GTK+ |
Expired
|
Medium
|
|||
gtk+3.0 (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Hi,
Marmuta wrote a patch for this issue, that I applied to the gtk+3.0 package shipping currently in the development version of Ubuntu zesty. You will find the corresponding debdiff attached to this bug thread.
Marmuta performed tests with org.gnome.
Can a sponsor please review the debdiff?
Thanks in advance.
Francesco
=======
Original description:
See attached screen shot. Blue is a GtkPlug, black is a GtkSocket. Source code below.
What I expect to happen is that the GtkPlug has the same size as the GtkSocket.
What actually happens is that GtkPlug only covers a quarter of the area of the GtkSocket.
Impact: Onboard on HiDPI displays is near unusable at login and lock screen, aka unity-greeter and gnome-screensaver. Original bug report here: https:/
Steps to reproduce:
- build plug and socket samples from below
- set display scaling factor to 2
System Settings -> Display -> Scale for menu and title bars = 2
- run ./socket $(head -1 <(./plug))
-> blue GtkPlug is too small, it should cover all the black
- resize the window
-> at smaller sizes the scaling suddenly corrects itself, at larger ones it's wrong again
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: libgtk-3-0 3.18.9-1ubuntu3
ProcVersionSign
Uname: Linux 4.4.0-18-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Apr 20 01:48:50 2016
SourcePackage: gtk+3.0
UpgradeStatus: No upgrade log present (probably fresh install)
affects: | ubuntu → gtk+3.0 (Ubuntu) |
Changed in gtk: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
summary: |
- GtkPlug scaled to half the expected size on HiDPI screens + GtkPlug scaled to half the expected size on HiDPI screens + zesty + debdiff |
Changed in gtk: | |
status: | Confirmed → Incomplete |
Changed in gtk: | |
status: | Incomplete → Expired |
build with:
gcc -o plug plug.c `pkg-config --cflags --libs gtk+-3.0`
gcc -o socket socket.c `pkg-config --cflags --libs gtk+-3.0`
run e.g. as:
./socket $(head -1 <(./plug))