-
Notifications
You must be signed in to change notification settings - Fork 50
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
Feature request: Allow specifying width and height in % of screen #49
Comments
I'm thinking about something like
This shouldn't be that hard to implement and solve your issue. |
@francma Your feature idea seems nice, but I would like to have this one too, but it might be too hard to implement, I think. |
I've done some research on wayland protocols and I think implementing this is not possible. Wob can operate in 3 different modes:
The problem is that in focused mode we don't choose the output, the compositor does. This means that we have no idea what the output is in order to set the correct dimensions. And I haven't found any way around this.
|
You can try this (a little hackish) implementation #133
The implementation was possible thanks to surface_enter event which we get after the surface is created & commited. The "hackish" part is in that wob starts with surface of size 1x1 px and then resizes based on output it ends up on.
I don't think I will implement sizes based on % because it would behave weird with (fractional) scaling. |
I would like to have wob with height 5px and width 90% of the screen. If I make it X pixels wide, it will not be sized correctly on my second screen which has lower resolution. How hard would it be to implement this?
The text was updated successfully, but these errors were encountered: