fuhsjr00 / bug.n

Tiling Window Manager for Windows
GNU General Public License v3.0
3.35k stars 214 forks source link

Windows 10 Start Menu Not Displaying correctly #229

Open yanisdb opened 4 years ago

yanisdb commented 4 years ago

Good evening fellow users of Bug.n,

I've noticed a small bug while using Bug.n with Windows 10. Opening the start menu (Windows Key) in full screen isn't working properly. The menu is only taking a little bit more than half the screen.

I've submitted a screenshot to illustrate the problem: image

I would be happy to fix the problem myself but I am fairly new to Bug.n and I don't know Windows "that well". Although, if someone would be kind enough to guide me through it, I'm sure I could be of some help.

Thank you and long live to Bug.n, I love it so MUCH!

joten commented 4 years ago

Sorry, I could not reproduce the issue. I tested with Windows 10 1903 and bug.n 9.0.2 with only the following lines in Config.ini (almost vanilla):

Config_showTaskBar=1
View_#1_#1_layout_#1=2

Retrieving the window information while the Start menu is open (pressing WinI) I got the following:

ID: 0x2405ae
class:  Windows.UI.Core.CoreWindow
title:  Cortana
process:    SearchUI.exe [5400]
style:  0x94000000
metrics:    x: 36, y: 12, width: 784, height: 726
tags:   --

Config_rule=Windows.UI.Core.CoreWindow;Cortana;;0;;;;;0;

The window width looks odd, since my monitor is 1366 px wide and the Start menu seems to be fullscreen.

Which versions are you running, and did you add any specific configuration variables e.g. Config_rules?

yanisdb commented 4 years ago

Edit: I posted two comments, read both before trying anything, the second one brings a lot of information.

Ok, so it took me some serious digging to find out what was the exact problems. First of all, I tried your Config.ini file, which worked perfectly. So obviously the problem was coming from my Config.ini file. Starting, from there, I started commenting some blocks of the config file and reloading to see if the problem was gone. This way, I was able to find the exact line causing the problem: Config_barWidth=15% The width of the start menu changes with the percentage: at 100% it's normal and takes off my all screen while at 15% it takes a bit more than half. At 0%, the start menu takes exactly half the screen. I also tried to see if it could be related to other settings like the verticalBarPos or the horizontalBarPos and other settings but it doesn't seem to be. But, I then tried a Config file with only "Config_barWidth=15%" and it doesn't produce this bug. So it obviously has to be related to another line. I'm currently trying to figure which one. I'm attaching my config.ini file if you want to take a look or if you want to try it yourself. I'll keep digging and keep you updated.

I'm in the Insider Windows Program so I have a preview version (Windows 10 Insider Preview 18995.1 (vb_release)) but in regard to the previous discoveries, I don't think the version of windows is related.

My config.ini file: ` ; bug.n - tiling window management ; @version 9.0.0

;; Status bar Config_showBar=1 Config_horizontalBarPos=center Config_verticalBarPos=top Config_barWidth=15% Config_singleRowBar=1 Config_spaciousBar=0 Config_fontName=Lucida Console Config_fontSize= Config_largeFontSize=24 ;; ;;;<shebang>;<time>;<date>;<anyText>;<batteryStatus>;<volumeLevel> Config<em>backColor</em>#1=101010;603000;Black;603000;Black;603000;000060;404040;080808 Config<em>backColor</em>#2=808080;;;;;;;202020;080808 ;; Config<em>backColor</em>#3=;;;;;;;ff8040; Config<em>foreColor</em>#1=404040;101010;Black;101010;Black;101010;Black;404040;202020 Config<em>foreColor</em>#2=4040ff;;;;;;;0000ff;0000ff Config<em>foreColor</em>#3=;;;;;;;010101; Config<em>fontColor</em>#1=White;White;White;White;White;White;White;Black;808080 Config<em>fontColor</em>#2=Black;;;;;;;White;White Config<em>fontColor</em>#3=;;;;;;;Black; Config_barTransparency=off Config_barCommands=Run, explore doc;Monitor_toggleBar();Main_reload();Reload;ExitApp Config_readinBat=0 ConfijUg_readinCpu=0 Config_readinDate=0 Config_readinDateFormat=ddd, dd. MMM. yyyy Config_readinDiskLoad=0 Config_readinMemoryUsage=0 Config_readinNetworkLoad=0 Config_readinTime=0 Config_readinTimeFormat=HH:mm Config_readinVolume=0 Config_readinInterval=30000</p> <p>;; Windows ui elements Config_bbCompatibility=0 Config_borderWidth=0 Config_borderPadding=0 Config_showTaskBar=0 Config_showBorder=0 Config_selBorderColor=</p> <p>;; Window arrangement Config_viewNames=1;2;3;4;5;6;7;8;9 Config<em>layout</em>#1=[]=;tile Config<em>layout</em>#2=[M];monocle Config<em>layout</em>#3=><>; Config_layoutCount=3 Config<em>layoutAxis</em>#1=1 Config<em>layoutAxis</em>#2=2 Config<em>layoutAxis</em>#3=2 Config_layoutGapWidth=29 Config_layoutMFactor=0.6 Config_areaTraceTimeout=1000 Config_continuouslyTraceAreas=0 Config_dynamicTiling=1 Config_ghostWndSubString= (Not Responding) Config_mFactCallInterval=700 Config_mouseFollowsFocus=0 Config_newWndPosition=top Config_onActiveHiddenWnds=view Config_shellMsgDelay=350 Config_syncMonitorViews=0 Config_viewFollowsTagged=0 Config_viewMargins=0;0;0;0</p> <p>;; Config<em>rule</em>#<i> := '<class>;<title>;<function name>;<is managed>;<m>;<tags>;<is floating>;<is decorated>;<hide title>;<action>' Config<em>rule</em>#1=.<em>;.</em>;;1;0;0;0;0;0; Config<em>rule</em>#2=.<em>;.</em>;Window_isChild;0;0;0;0;0;1; Config<em>rule</em>#3=.<em>;.</em>;Window_isPopup;0;0;0;0;0;1; Config<em>rule</em>#4=QWidget;.<em>;;1;0;0;0;0;0; Config<em>rule</em>#5=SWT_Window0;.</em>;;1;0;0;0;0;0; Config<em>rule</em>#6=Xming;.<em>;;1;0;0;0;0;0; Config<em>rule</em>#7=MsiDialog(No)?CloseClass;.</em>;;1;0;0;1;0;0; Config<em>rule</em>#8=AdobeFlashPlayerInstaller;.<em>;;1;0;0;1;0;0; Config<em>rule</em>#9=CalcFrame;.</em>;;1;0;0;1;1;0; Config<em>rule</em>#10=CabinetWClass;.<em>;;1;0;0;0;1;0; Config<em>rule</em>#11=OperationStatusWindow;.</em>;;0;0;0;1;1;0; Config<em>rule</em>#12=Chrome_WidgetWin_1;.<em>;;1;0;0;0;1;0; Config<em>rule</em>#13=Chrome_WidgetWin_1;.</em>;Window_isPopup;0;0;0;1;1;1; Config<em>rule</em>#14=Chrome_RenderWidgetHostHWND;.<em>;;0;0;0;1;1;0; Config<em>rule</em>#15=IEFrame;.</em>Internet Explorer;;1;0;0;0;1;0; Config<em>rule</em>#16=MozillaWindowClass;.<em>Mozilla Firefox;;1;0;0;0;1;0; Config<em>rule</em>#17=MozillaDialogClass;.</em>;;1;0;0;1;1;0; Config<em>rule</em>#18=ApplicationFrameWindow;.*Edge;;0;0;0;0;1;0; ;Config<em>rule</em>#19=Windows.UI.Core.CoreWindow;Search;;0;;;1;;0;</p> <p>;; Configuration management Config_autoSaveSession=off Config_maintenanceInterval=5000</p> <p>;; Key definitions ;; Window management Config_hotkey=#Down::View_activateWindow(0, +1) Config_hotkey=#Up::View_activateWindow(0, -1) Config_hotkey=#+Down::View_shuffleWindow(0, +1) Config_hotkey=#+Up::View_shuffleWindow(0, -1) Config_hotkey=#+Enter::View_shuffleWindow(1) Config_hotkey=#c::Manager_closeWindow() Config_hotkey=#+d::Window_toggleDecor() Config_hotkey=#+f::View_toggleFloatingWindow() Config_hotkey=#+m::Manager_moveWindow() Config_hotkey=#+s::Manager_sizeWindow() Config_hotkey=#+x::Manager_maximizeWindow() Config_hotkey=#i::Manager_getWindowInfo() Config_hotkey=#+i::Manager_getWindowList() Config_hotkey=!Down::View_moveWindow(0, +1) Config_hotkey=!Up::View_moveWindow(0, -1) Config_hotkey=!+Enter::Manager_maximizeWindow() Config_hotkey=!1::View_moveWindow(1) Config_hotkey=!2::View_moveWindow(2) Config_hotkey=!3::View_moveWindow(3) Config_hotkey=!4::View_moveWindow(4) Config_hotkey=!5::View_moveWindow(5) Config_hotkey=!6::View_moveWindow(6) Config_hotkey=!7::View_moveWindow(7) Config_hotkey=!8::View_moveWindow(8) Config_hotkey=!9::View_moveWindow(9) Config_hotkey=!0::View_moveWindow(10) Config_hotkey=!BackSpace::View_toggleStackArea()</p> <p>;; Window debugging Config_hotkey=#^i::Debug_logViewWindowList() Config_hotkey=#+^i::Debug_logManagedWindowList() Config_hotkey=#^h::Debug_logHelp() Config_hotkey=#^d::Debug_setLogLevel(0, -1) Config_hotkey=#^+d::Debug_setLogLevel(0, +1)</p> <p>;; Layout management Config_hotkey=#Tab::View_setLayout(-1) Config_hotkey=#f::View_setLayout(3) Config_hotkey=#m::View_setLayout(2) Config_hotkey=#t::View_setLayout(1) Config_hotkey=#Left::View_setLayoutProperty(MFactor, 0, -0.05) Config_hotkey=#Right::View_setLayoutProperty(MFactor, 0, +0.05) Config_hotkey=#^t::View_setLayoutProperty(Axis, 0, +1, 1) Config_hotkey=#^Enter::View_setLayoutProperty(Axis, 0, +2, 1) Config_hotkey=#^Tab::View_setLayoutProperty(Axis, 0, +1, 2) Config_hotkey=#^+Tab::View_setLayoutProperty(Axis, 0, +1, 3) Config_hotkey=#^Up::View_setLayoutProperty(MY, 0, +1) Config_hotkey=#^Down::View_setLayoutProperty(MY, 0, -1) Config_hotkey=#^Right::View_setLayoutProperty(MX, 0, +1) Config_hotkey=#^Left::View_setLayoutProperty(MX, 0, -1) Config_hotkey=#+Left::View_setLayoutProperty(GapWidth, 0, -5) Config_hotkey=#+Right::View_setLayoutProperty(GapWidth, 0, +5) Config_hotkey=#+g::View_setLayoutProperty(Gapwidth, 0, 0, 0) Config_hotkey=#+h::View_setLayoutProperty(Gapwidth, 0, 0, 29)</p> <p>;; View/Tag management Config_hotkey=#+n::View_toggleMargins() Config_hotkey=#BackSpace::Monitor_activateView(-1) Config_hotkey=#+0::Monitor_setWindowTag(10) Config_hotkey=#1::Monitor_activateView(1) Config_hotkey=#+1::Monitor_setWindowTag(1) Config_hotkey=#^1::Monitor_toggleWindowTag(1) Config_hotkey=#2::Monitor_activateView(2) Config_hotkey=#+2::Monitor_setWindowTag(2) Config_hotkey=#^2::Monitor_toggleWindowTag(2) Config_hotkey=#3::Monitor_activateView(3) Config_hotkey=#+3::Monitor_setWindowTag(3) Config_hotkey=#^3::Monitor_toggleWindowTag(3) Config_hotkey=#4::Monitor_activateView(4) Config_hotkey=#+4::Monitor_setWindowTag(4) Config_hotkey=#^4::Monitor_toggleWindowTag(4) Config_hotkey=#5::Monitor_activateView(5) Config_hotkey=#+5::Monitor_setWindowTag(5) Config_hotkey=#^5::Monitor_toggleWindowTag(5) Config_hotkey=#6::Monitor_activateView(6) Config_hotkey=#+6::Monitor_setWindowTag(6) Config_hotkey=#^6::Monitor_toggleWindowTag(6) Config_hotkey=#7::Monitor_activateView(7) Config_hotkey=#+7::Monitor_setWindowTag(7) Config_hotkey=#^7::Monitor_toggleWindowTag(7) Config_hotkey=#8::Monitor_activateView(8) Config_hotkey=#+8::Monitor_setWindowTag(8) Config_hotkey=#^8::Monitor_toggleWindowTag(8) Config_hotkey=#9::Monitor_activateView(9) Config_hotkey=#+9::Monitor_setWindowTag(9) Config_hotkey=#^9::Monitor_toggleWindowTag(9)</p> <p>;; Monitor management Config_hotkey=#.::Manager_activateMonitor(0, +1) Config_hotkey=#,::Manager_activateMonitor(0, -1) Config_hotkey=#+.::Manager_setWindowMonitor(0, +1) Config_hotkey=#+,::Manager_setWindowMonitor(0, -1) Config_hotkey=#^+.::Manager_setViewMonitor(0, +1) Config_hotkey=#^+,::Manager_setViewMonitor(0, -1)</p> <p>;; GUI management Config_hotkey=#+Space::Monitor_toggleBar() Config_hotkey=#Space::Monitor_toggleTaskBar() Config_hotkey=#y::Bar_toggleCommandGui() Config_hotkey=#+y::Monitor_toggleNotifyIconOverflowWindow() Config_hotkey=!+y::View_traceAreas()</p> <p>;; Administration Config_hotkey=#^e::Run, edit Config.ini Config_hotkey=#^s::Config_UI_saveSession() Config_hotkey=#^r::Main_reload() Config_hotkey=#^+r::Reload Config_hotkey=#^q::ExitApp `</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/yanisdb"><img src="https://avatars.githubusercontent.com/u/17860659?v=4" />yanisdb</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p>New discovery: I can used the line <code>Config_barWidth=15%</code> if i comment the line: <code>Config_horizontalBarPos=center</code> Or, if I change "center" to left.</p> <p>And then, i tried on "right" and i noticed that the start menu was positioned at the same place then the bar. <img src="https://user-images.githubusercontent.com/17860659/66164833-d0a97d80-e633-11e9-9bc1-da740c8576bd.png" alt="image" /> See where the bar beggins ? Now look at where the menu beggins: <img src="https://user-images.githubusercontent.com/17860659/66164991-11a19200-e634-11e9-9b63-2d5455e9a086.png" alt="image" /> I think we figgured whats happening but I have absolutly no idea how to find a "real" fix because I've no idea how the code works, I didn't have time to look at it yet. For now, I'll just keep the bar to the left. I keep it hidden most of the time anyway so it's not a problem for me.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/joten"><img src="https://avatars.githubusercontent.com/u/6839361?v=4" />joten</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p>Unfortunately, I could not reproduce the issue with your Config.ini on my system. I boiled I down to the following changes:</p> <pre><code>;; Status bar Config_horizontalBarPos=center Config_barWidth=15% Config_backColor_#1=101010;603000;Black;603000;Black;603000;000060;404040;080808 Config_backColor_#2=808080;;;;;;;202020;080808 ;; Config_backColor_#3=;;;;;;;ff8040; Config_foreColor_#1=404040;101010;Black;101010;Black;101010;Black;404040;202020 Config_foreColor_#2=4040ff;;;;;;;0000ff;0000ff Config_foreColor_#3=;;;;;;;010101; Config_fontColor_#1=White;White;White;White;White;White;White;Black;808080 Config_fontColor_#2=Black;;;;;;;White;White Config_fontColor_#3=;;;;;;;Black; Config_readinDate=0 Config_readinTime=0 ;; Windows ui elements Config_borderPadding=0 Config_showBorder=0 ;; Window arrangement Config_layoutGapWidth=29 Config_mouseFollowsFocus=0 ;; Config_rule_# := ';<title>;;;;;;;;' Config_rule_#2=.*;.*;Window_isChild;0;0;0;0;0;1; Config_rule_#3=.*;.*;Window_isPopup;0;0;0;0;0;1; Config_rule_#7=MsiDialog(No)?CloseClass;.*;;1;0;0;1;0;0; Config_rule_#13=Chrome_WidgetWin_1;.*;Window_isPopup;0;0;0;1;1;1; Config_rule_#14=Chrome_RenderWidgetHostHWND;.*;;0;0;0;1;1;0; Config_rule_#15=IEFrame;.*Internet Explorer;;1;0;0;0;1;0; Config_rule_#16=MozillaWindowClass;.Mozilla Firefox;;1;0;0;0;1;0; Config_rule_#17=MozillaDialogClass;.;;1;0;0;1;1;0; Config_rule_#18=ApplicationFrameWindow;.*Edge;;0;0;0;0;1;0; ;; Configuration management Config_autoSaveSession=off ;; Key definitions ;; Layout management Config_hotkey=#+Left::View_setLayoutProperty(GapWidth, 0, -5) Config_hotkey=#+Right::View_setLayoutProperty(GapWidth, 0, +5) Config_hotkey=#+g::View_setLayoutProperty(Gapwidth, 0, 0, 0) Config_hotkey=#+h::View_setLayoutProperty(Gapwidth, 0, 0, 29)</code></pre> <p>Additionally, I turned on <code>Auto-hide Taskbar in Desktop Mode</code> and tested different values for <code>Config_horizontalBarPos</code> and <code>Config_barWidth</code>; but no <em>luck</em>.</p> <p>Oddly, when setting <code>Config_verticalBarPos=bottom</code> with <code>Auto-hide Taskbar</code> Explorer crashes, and <code>Config_verticalBarPos=tray</code> does not seem to work anymore.</p> <p>Can you post the window information, pressing <kbd>Win</kbd><kbd>I</kbd> when the Start menu is open? Maybe the Insider Preview does change some desktop components. It looks a bit as if the Start menu sits inside the bug.n status bar (?).</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/yanisdb"><img src="https://avatars.githubusercontent.com/u/17860659?v=4" />yanisdb</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p>In fact, everything sits inside the bug.n status bar. If I use the normal fullscreen buttons (the one on the right corner of every windows), the window takes only half (or a little bit more depending of the settings) of the screen also. Absolutely everything is behaving as if my screen was smaller.</p> <p>Here are the windows information: <code> ID: 0x10338 class: Windows.UI.Core.CoreWindow title: Search process: SearchApp.exe [11436] style: 0x94000000 metrics: x: 60, y: 0, width: 980, height: 1080 tags: -- Config_rule=Windows.UI.Core.CoreWindow;Search;;0;;;;;0; </code> My screen is a normal 1920x1080, so the width definily seems wierd.</p> <p>I also tried an exact copy of your latest Config.ini and the bug is accually present so we're definitly not getting the same behavior.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/cedrikl"><img src="https://avatars.githubusercontent.com/u/24951043?v=4" />cedrikl</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p>Hello, I have that issue whenever I use multiple monitors laid out in a particular way. My setup to reproduce is to have a screen layout where the other displays are not left aligned to the main windows display.</p> <p>My ideal setup is (matches the physical layout):</p> <pre><code>------------------- ------------------ | | | | | 2nd monitor | | 3rd monitor | | | | | ------------------- ------------------- ------------------- | Laptop (Main) | | Taskbar only | | here | -------------------</code></pre> <p>While it is a minor inconvenience, I worked around by layering my desktop as followed:</p> <pre><code> ------------------ | | | 3rd monitor | | | ------------------- ------------------- | | | 2nd monitor | | | ------------------- ------------------- | Laptop (Main) | | Taskbar only | | here | -------------------</code></pre> <p>Hope it can help. Thanks for the amazing work and I really appreciate bug.n!</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>