sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
814 stars 40 forks source link

ST4: Preference window contents offset using OpenGL on Intel GPU (Windows 10) #3595

Closed keithrussell42 closed 4 years ago

keithrussell42 commented 4 years ago

Description

Using the latest ST4 dev build (4084) opening the preferences window has a black bar between the window contents and the menu bar. This happens when I have my machine set up to let Windows decide which GPU to use on my laptop: either the built-in Intel GPU or the separate Nvdia GPU. The bug happens only when using the Intel GPU. Mouse clicks target where the text should be, not where it is displayed leading me to assume that the entire window contents are offset vertically. If I force Sublime Text to run with the Nvidia GPU the bug is not evident.

This also sometimes happens when opening the main window but I have not been able to produce a reliable test case. I had it happening reliably but as soon as I switched the window size the problem went away. Since I use "hot_exit" the size change was preserved on restart so I was unable to reproduce. I can, however, reproduce it opening the preferences window. Since the window size seems to make the issue go away I've attached a screenshot of the window at the dimensions when the problem is happening. It is 3112 x 1887 pixels, in this particular case.

Steps to reproduce

  1. Set GPU to Intel in Display -> Graphics
  2. Open Preferences

Expected behavior

Window contents (i.e. tab bar) is directly below the menu bar.

Actual behavior

Black bar is displayed between the tab bar and the menu bar.

sublime_text_4_black_bar_opengl

Environment

BenjaminSchaaf commented 4 years ago

Duplicate of #3325