| Description: |
tk scaling -displayof sets/returns the wrong value e.g.
# open a toplevel on another display
% toplevel .remote -screen remote:0.0
.remote
# set scaling on default display
% tk scaling -displayof . 1
# check value
% tk scaling -displayof .
1.00078802206
# set scaling on remote display
% tk scaling -displayof .remote 2
# check value
% tk scaling -displayof .remote
2.00157604413
# check local display again (should still be 1.00078802206)
% tk scaling -displayof .
2.00157604413
Consequently, winfo fpixels (and winfo pixels) does not
calculate measurements correctly e.g. check DPI for
each display:
% winfo fpixels . 1i
144.113475177
% winfo fpixels .remote 1i
100.036923077
The last value equates to a tk scaling value of
1.3894017094 which just happens to be the default
scaling value as set by the X server on the remote
display. It seems that 'tk scaling' always sets and
reports values for the default screen.
Linux 2.4.21 / KDE 3.1
|