Menu

mail app - windows rule help

2021-10-11
2021-10-14
  • Johan Piculell

    Johan Piculell - 2021-10-12

    Hi.
    I set it up now successfully with
    Class name: ApplicationFrameWindow
    Window name: Mail

    All other settings default.

     
  • Aamer Akhter

    Aamer Akhter - 2021-10-13

    Thanks Johan,

    Unfortunately, that doesn't seem to work for me. Very odd.

    The middle mouse button to get the window rule information doesn't work with the Mail app.

    Any suggestions on how to proceed?

     
  • Johan Piculell

    Johan Piculell - 2021-10-13

    Yea, middle button does not work on some windows, for example like these frameless ones that this app is constructed of.
    But strange then, no idea what could differ then. You can always paste a screenshot of your rules here so we can compare but really did not change any default so beats me.

    What you can do to just make sure your naming is the same, enable window logging (from settings), restart VW, then tail the logfile and open mail app and see what VW writes. In my case it was the two strings I mentioned, but maybe you have another language so it is not "Mail"?

     
  • Aamer Akhter

    Aamer Akhter - 2021-10-13

    My intent is to have Mail app only on Desktop 1. When context is in Desktop 2, and Mail app is started, it stays in Desktop 2. I would have thought that it would be moved to Desktop 2.
    However, when I hit 'reapply rules', it is moved to Desktop 1.

    This is very helpful. Here are the logs I am getting.

    [2021-10-13 10:51:25:901] Got new unmanaged window    51362 Proc 11324 Flg 22 0 (8c000000) 0
    [2021-10-13 10:51:25:901] Linking all window c1574 app windows
    [2021-10-13 10:51:25:902] Got new window    c1574 95cf0000 00200100 Flg 143eb Desk 2 Proc 11324 209d0 Link 80976 Pos -1928 -8
      Class "ApplicationFrameWindow" Title "Mail"
    [2021-10-13 10:51:25:902] Got NWin Activation: c1574 (2 2 143eb 1)
    [2021-10-13 10:51:26:151] Set window desk: 412d8 1 1 (c1574)
    [2021-10-13 10:51:26:222] Got new window    412d8 84000000 00200000 Flg 1406b Desk 1 Proc 21008 0 Link 0 Pos 0 8
      Class "Windows.UI.Core.CoreWindow" Title "Mail"
    [2021-10-13 10:51:26:415] vwWindowShowHide    b0d6e 0 16b 200000 1 2 - HUNG
    

    My current config

    flags# 92160
    0n# ApplicationFrameWindow
    1n# Mail
    desk# 1
    
    flags# 92160
    0n# Windows.UI.Core.CoreWindow
    1n# Mail
    desk# 1
    
    flags# 92672
    0n# ApplicationFrameWindow
    1n# Inbox - Gmail ?- Mail
    desk# 1
    
     
  • Johan Piculell

    Johan Piculell - 2021-10-14

    You mean you want it to auto move to desk 1 even if opened on desk 2?
    Think that would be possible, cannot test right now however since on Linux work computer.

     
  • Johan Piculell

    Johan Piculell - 2021-10-14

    Ok, back on Windows.

    Window rules for mail app
    - check automatically move to desk 1.
    - check Move windows immediately.
    - Then select on hidden window activation, chose ignore the event (or change globally for all according to your preference).
    Don't forget to click modify to apply your rule.

    Now mail app will always start on Desk 1 no matter what desktop you are on when starting it.

     
  • Aamer Akhter

    Aamer Akhter - 2021-10-14

    Thank-you Johan! This works!

     

Log in to post a comment.