Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10 Start Menu Not Displaying correctly #229

Open
yanisdb opened this issue Oct 1, 2019 · 6 comments
Open

Windows 10 Start Menu Not Displaying correctly #229

yanisdb opened this issue Oct 1, 2019 · 6 comments

Comments

@yanisdb
Copy link

yanisdb commented Oct 1, 2019

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
Copy link
Collaborator

joten commented Oct 3, 2019

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
Copy link
Author

yanisdb commented Oct 3, 2019

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
;; ;;<title>;;;;;;
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_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

;; Windows ui elements
Config_bbCompatibility=0
Config_borderWidth=0
Config_borderPadding=0
Config_showTaskBar=0
Config_showBorder=0
Config_selBorderColor=

;; Window arrangement
Config_viewNames=1;2;3;4;5;6;7;8;9
Config_layout_#1=[]=;tile
Config_layout_#2=[M];monocle
Config_layout_#3=><>;
Config_layoutCount=3
Config_layoutAxis_#1=1
Config_layoutAxis_#2=2
Config_layoutAxis_#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

;; Config_rule_# := ';<title>;;;;;;;;'
Config_rule_#1=.;.;;1;0;0;0;0;0;
Config_rule_#2=.;.;Window_isChild;0;0;0;0;0;1;
Config_rule_#3=.;.;Window_isPopup;0;0;0;0;0;1;
Config_rule_#4=QWidget;.;;1;0;0;0;0;0;
Config_rule_#5=SWT_Window0;.
;;1;0;0;0;0;0;
Config_rule_#6=Xming;.;;1;0;0;0;0;0;
Config_rule_#7=MsiDialog(No)?CloseClass;.
;;1;0;0;1;0;0;
Config_rule_#8=AdobeFlashPlayerInstaller;.;;1;0;0;1;0;0;
Config_rule_#9=CalcFrame;.
;;1;0;0;1;1;0;
Config_rule_#10=CabinetWClass;.;;1;0;0;0;1;0;
Config_rule_#11=OperationStatusWindow;.
;;0;0;0;1;1;0;
Config_rule_#12=Chrome_WidgetWin_1;.;;1;0;0;0;1;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;
;Config_rule_#19=Windows.UI.Core.CoreWindow;Search;;0;;;1;;0;

;; Configuration management
Config_autoSaveSession=off
Config_maintenanceInterval=5000

;; 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()

;; 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)

;; 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)

;; 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)

;; 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)

;; 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()

;; 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
`

@yanisdb
Copy link
Author

yanisdb commented Oct 3, 2019

New discovery: I can used the line
Config_barWidth=15%
if i comment the line:
Config_horizontalBarPos=center
Or, if I change "center" to left.

And then, i tried on "right" and i noticed that the start menu was positioned at the same place then the bar.
image
See where the bar beggins ?
Now look at where the menu beggins:
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.

@joten
Copy link
Collaborator

joten commented Oct 4, 2019

Unfortunately, I could not reproduce the issue with your Config.ini on my system. I boiled I down to the following changes:

;; 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)

Additionally, I turned on Auto-hide Taskbar in Desktop Mode and tested different values for Config_horizontalBarPos and Config_barWidth; but no luck.

Oddly, when setting Config_verticalBarPos=bottom with Auto-hide Taskbar Explorer crashes, and Config_verticalBarPos=tray does not seem to work anymore.

Can you post the window information, pressing WinI 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 (?).

@yanisdb
Copy link
Author

yanisdb commented Oct 4, 2019

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.

Here are the windows information:
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;
My screen is a normal 1920x1080, so the width definily seems wierd.

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.

@cedrikl
Copy link

cedrikl commented Jan 11, 2020

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.

My ideal setup is (matches the physical layout):

-------------------  ------------------
|                 | |                 |
| 2nd monitor     | | 3rd monitor     |
|                 | |                 |
------------------- -------------------
         -------------------
         | Laptop (Main)   |
         | Taskbar only    |
         | here            |
         -------------------

While it is a minor inconvenience, I worked around by layering my desktop as followed:

 ------------------
|                 |
| 3rd monitor     |
|                 |
-------------------
-------------------
|                 |
| 2nd monitor     |
|                 |
-------------------
-------------------
| Laptop (Main)   |
| Taskbar only    |
| here            |
-------------------

Hope it can help.
Thanks for the amazing work and I really appreciate bug.n!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants