Corrupt colors when Xming is in multiwindow mode - putty

I've just upgraded Xming from about 7.5 to 7.7.0.56 and colors no longer display properly in multiwindow mode.
On my Windows PC I run Xming in multiwindow mode like this:
"C:\Program Files\Xming\Xming.exe" -multiwindow
Then through a putty session to my Linux PC I start a GUI app:
gedit spawnd.start
The application appears in its own window on my Windows PC, but the colours and text looks corrupted. In Eclipse the text if not even readable.
If I start Xming with no args so it uses the default 'one window' mode it displays the GUI app correctly, but then Xming has a background that covers the whole Windows desktop.
I thought this might be a color depth issue but checking the log suggests it is using 16-bit color in both modes. From the multiwindow test:
winSetEngine - Multi Window or Rootless => ShadowGDI
winScreenInit - Using Windows display depth of 16 bits per pixel
winAllocateFBShadowGDI - Creating DIB with width: 2560 height: 1440 depth: 16
winFinishScreenInitFB - Masks: 0000f800 000007e0 0000001f
winInitVisualsShadowGDI - Masks 0000f800 000007e0 0000001f BPRGB 6 d 16 bpp 16
From the 'one window' test:
winScreenInit - Using Windows display depth of 16 bits per pixel
Is there some combination of Xming settings that will let me use multiwindow mode with the correct colors?

Related

Different font size for two Xcode windows?

I am using an external monitor with my Macbook.
I would like the window in the external monitor to have increased font size and the font on the laptop's Xcode window to remain the same.
However, when I do command + plus/minus in one window, it changes font size in both.
How can I adjust font size in different windows independently?

eclipse scaling issue on extended display

My setup is one DELL XPS 13 laptop(3200 x 1800, Windows 10), two extended displays(1680x1050) connected to the laptop via a dell thunderbolt dock.
My problem is on the xps13 eclipse displays properly, but on the extended displays, icons and fonts of the eclipse are extremely large.
None of the following works:
different versions(Oxygen, Neon, Mars)
close the dell xps lid or turn of its screen.
set dell xps resolution to 1920x1080
set Dsun.java2d.dpiaware=true
This seems to be related to the differing scaling factors between the monitors. Eclipse seems to take the scaling factor from the "main" display all the time, instead of taking the it from the extended displays when you move it to there. I have an XPS 15 and have this issue.
Workarounds that worked for me:
Set one of your extended displays as your "main" monitor. Eclipse will now grab the scaling factor from that monitor, which should make it look correct there.
Set the current "main" monitor (which I assume is your laptop's native screen) to scale at 100%, sign out, sign back in, and start Eclipse.
The downside to these workarounds is that Eclipse will appear very small on the laptop's native screen when attached to your extended monitors. And Option 2 will make your native monitor not scale anything so it may be impossible to read. I use Option 1.
Ive got a similar Problem ...
my 3rd Monitor ( for eclipse ) is a 4k Display with 150% Windows Scaling ....
my main Monitor is 1080p at 100% Scaling
Eclipse is blurry af ...
Found a WorkAround based on Losati Answer:
Change Main Monitor to 150% Scaling
Start Eclipse
Eclipse looks pretty fine
Main Monitor -> 100% Scaling
And Eclipse still looks fine on my 4k Display
Change the compatibility settings for Eclipse.exe in Windows 10:
right click on Eclipse icon
select properties
select compatibility
check "DPI scaling" option
select "System (extended)"

Octave GUI Command window flashes after being resized to a bigger size

I am running octave 4.0.2 on windows 7 64 bit vm hosted on a mac with El Capitan in Parallels Desktop.
I have a Thunderbolt display with the resolution 2560x1440.
When I make the main Octave GUI window bigger than a certain size, the command window starts to flash and it displays all sorts of garbage characters. I attached a screenshot I took while the command window was flashing. It seems that a threshold for the command window is approximately 1320x965 including scrollbars, i.e. when the command window becomes bigger, it starts flashing garbage characters. The window is sensitive to increasing either the width or height. Also, if the width is smaller, it will start flashing a higher height.
Any ideas on how to fix this and what might cause it?
Thank you
Update: I posted this: http://savannah.gnu.org/bugs/index.php?47893
This issue is a bug in the software: http://savannah.gnu.org/bugs/?45220.

MFC Application font issues - dialogs look wrongon Win2k8

My legacy application that runs on win2k3 citrix is about to be migrated to win2k8 citrix.
While testing on win2k8 I noticed UI issues that are not apparent on 2k3 - buttons are not wide enough for their labels, text fields are truncated, etc.
I noticed Win2k3 default font is Tahoma and 2k8 uses Segoe UI, not sure if this is the cause
It's a controlled environment that hosts only my application so changing the windows UI settings is preferable to redesigning all my windows and dialogs.
How can i make my application look the same on win2k8 as it does on win2k3?
Here is an example of my login dialog from the rc file. On win2k8 the text "please enter your user id" wraps over 2 lines and is hidden under the edit box.
IDD_LOGON DIALOG DISCARDABLE 0, 0, 545, 361
STYLE WS_POPUP | WS_VISIBLE
FONT 8, "Arial"
BEGIN
LTEXT "Welcome",IDC_USER_LOGON_HEAD1,368,192,140,19
LTEXT "Please enter your User ID",IDC_USER_LOGON_HEAD2,368,220,
118,14
EDITTEXT IDC_USER_LOGON_USER,368,236,81,12,ES_AUTOHSCROLL
LTEXT "and your password",IDC_USER_LOGON_HEAD3,368,260,118,14
EDITTEXT IDC_USER_LOGON_PASSWORD,368,276,81,12,ES_PASSWORD |
ES_AUTOHSCROLL
PUSHBUTTON "OK",IDOK,368,316,50,14,WS_DISABLED
PUSHBUTTON "E&xit",IDCANCEL,424,316,50,14
END
edit:
I did some further investigation by taking some screen shots of the above dialog. it appears the problem is not that the text is the wrong size - the problem in the controls on the dialog are too small!
eg:
for the control IDC_USER_LOGON_PASSWORD which is 81 dialog units x 12 dialog units.
it should be rendered as 142 px by 24 px
instead it is rendered too small as 122 px by 21 px
Does this give anyone any clues?
Looks like you have "Desktop Experience" installed. You can uninstall it, and the server will run in "Classic" mode.
Additionally, you can play with "Personalisation Settings". Open Control panel\Appearance and Personalisation\Display and select "Make text and other items larger or smaller". There you can set the size of each elements. I recommend you set everything at 100%.
Also, if this does not help, you can change Compatibility for the application in Win2k8 to run as Win2k3.
As suggested by Hans, the problem was a DPI setting. The Win2k8 system has a DPI of 96 and the win2k3 system has a DPI of 120.
Setting the DPI on win2k8 to 120 resolves the issue when logged on via remote desktop, however there are still some issues getting citrix settings to respect this DPI settings, but I'm on the right track now.
thanks everyone

Using Windows 7 Aero to dim or add a color hue to the whole desktop or a specific window

I would like to apply a light greenish or reddish hue to the entire desktop or select application windows using Windows 7 Aero.
Assuming this is this possible with Aero, is it possible with it so I could potentially port my application to XP?
You'd have a create a window that sits on top of the other windows you wish to dim/hue. This window would use the Aero API calls to enable transparency.
For XP, you'd have to copy the contents of the screen to a bitmap, process the bitmap to make it look like you want, and create a window over the top of the other windows showing that bitmap. This technique would also work under Windows 7, but would not allow changes to any underlying windows to show through.

Resources