RamonUnch / AltSnap

Maintained continuation of Stefan Sundin's AltDrag
GNU General Public License v3.0
2.15k stars 70 forks source link

Title bar blacklist? #246

Closed rp1231 closed 2 years ago

rp1231 commented 2 years ago

Is is possible to exclude windows from the titlebar actions? The windows store for example is on the Windows Blacklist but the titlebar action still works on it.

RamonUnch commented 2 years ago

it is MMBLower blacklist:

In the [Blacklist] section

MMBLower=*|CASCADIA_HOSTING_WINDOW_CLASS,*|SDL_app,*|MozillaDialogClass
; List of windows for which the Titlebar action should not be performed.
; default is MS-WindowTerminal and all SDL programs.
RamonUnch commented 2 years ago

Maybe have a quick look at the wiki it should contain details about most advanced settings.

rp1231 commented 2 years ago

Aah yes, don't know how I missed that. My bad.

RamonUnch commented 2 years ago

If you the program you are blacklisting should be blacklisted for all users then it can be added to the default blacklist and benefit future users.

rp1231 commented 2 years ago

The program I'm blacklisting is the windows 11 store since it has a search bar integrated in the titlebar and it interferes with the titlebar actions.

I'm not sure if the same problem exists in the windows 10 store....

RamonUnch commented 2 years ago

Interesting, however I expect Windows 11 store to have the *|ApplicationFrameWindow class, so unless we blacklist the exe name, it would not be language neutra or we would have to blacklist all windows applications. So I am not sure it should be done.

rp1231 commented 2 years ago

This is the window name *Microsoft Store|ApplicationFrameWindow Just in case you decide/want to include it.

Ichisich commented 2 years ago

Yes, the store is in the *|ApplicationFrameWindo class. Unfortunately, many UWP applications use interface elements implemented in their title bar nowadays.

Store has a search bar, Photos and Movies a backwards handle etc.

@rp1231 Instead of blacklisting you can search either with Ctrl+F or, and that works with every title bar, hold the modifier key to disable title bar actions temporary.

rp1231 commented 2 years ago

Yes that is a nice trick

RamonUnch commented 2 years ago

I see indeed, I will link this issue to the wiki. I will not include it by default, because it would not be language neutral and it would not be desired by everyone, plus by default the titlebar actions are not enabled so it is not a huge deal. thanks for your insights both of you.