fuhsjr00 / bug.n

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

Class names containing illegal ; characters #234

Open tantoinet opened 4 years ago

tantoinet commented 4 years ago

I'm using an app that has its drop down menus being managed bu byg.n (Win10 latest + Bug.n 9.0.2). The #i shows that the Class name contains illegal characters which makes me unable to whitelist it:

ID: 0x8e02e4
class:  HwndWrapper[DefaultDomain;;37b50b81-9181-4535-812b-c11e41809c7f]
title:  
process:    Internal.AppName.exe [21884]
style:  0x160F0000
metrics:    x: 0, y: 18, width: 30, height: 300
tags:   16

Config_rule=HwndWrapper[DefaultDomain;;37b50b81-9181-4535-812b-c11e41809c7f];;;1;1;16;0;0;0;

The main window has a Title.

tantoinet commented 4 years ago

As a workaround, this can be fixed by combining two rules:

Config_rule=HwndWrapper.DefaultDomain.*;;;0;;;;;;
Config_rule=;Internal.AppTitleName.*;;1;;16;;;;

The main window is first moved to Tag 5, then, all windows with class HwndWrapper.DefaultDomain.* will be considered as unmanaged. Reversing the 2 rules order breaks the fix.

joten commented 4 years ago

That is more than a workaround, but the solution. As with the defaut rule 3 (pop-ups) and the three preceding rules (4-6), sometimes one rule does not fit all windows.