ch11ng / exwm

Emacs X Window Manager
2.86k stars 137 forks source link

Prevent applications from enabling fullscreen #931

Open walseb opened 7 months ago

walseb commented 7 months ago

Hello!

I have a few X-applications that forces fullscreen all the time.

I'd like to prevent any application from enabling fullscreen, and just do it myself instead.

Is there any way to do this?

Thanks!

sarg commented 7 months ago

It's handled over here: https://github.com/ch11ng/exwm/blob/9d035d713ee2692ea095dc6e0668ecabeb550845/exwm.el#L597-L610

You can try to add a before-while advice to exwm-layout-set-fullscreen which would define which apps can enable fullscreen.

walseb commented 7 months ago

Thank you so much! I will try that.

walseb commented 7 months ago

As a side note, it would be great if someone could rewrite this monolithic cond switch event handler as a hook that gets called with the event type. Then it would be much easier to make changes like this, and even add functionality when EXWM receives events.