-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add support for maximization rather than fullscreening of applications #162
Comments
Hi @timiil, all applications in Frame are fullscreen, it's on the application to have the necessary controls. Why would you need to quit applications? It doesn't obviously fit the use case Frame is covering. How would you then open the closed application again? |
let's say we start an app "my apps launcher" first in Ubuntu-frame, which have serval buttons :["gedit","firefox","rythmbox"],user can press the button and saw the app in modal mode,user can only interact the current app which open by him,till he turn off (close) the app,he can press the launcher's buttons again. |
@timiil the launcher should then have means to manage the applications it launched. Through some privileged Wayland protocols (https://wayland.app/protocols/wlr-foreign-toplevel-management-unstable-v1, https://wayland.app/protocols/wlr-layer-shell-unstable-v1) you can build a launcher that's always on screen and allows application management. I theory we could have a mode in Frame to keep applications maximized, rather than fullscreen, which would cause them to draw their titlebars. Have a look at https://github.com/MirServer/ubuntu-frame/blob/main/src/frame_window_manager.cpp and see if you can modify it to work the way you want. If you can propose this change, we'll consider it for inclusion into Frame itself. |
thanks for your reply. i will take a look for the code you listed above. let's make my request clear again pls: we should let the root app(my apps launcher) run in frame by full screen mode. but all children gui apps those whom created by the root app should all run in "maximize mode" in Ubuntu-frame,so the use have the close button to click. |
@timiil how would Frame know which is the launcher app, and which are "normal" apps? You need to make your launcher special, and the above mentioned protocol extensions allow that - you can make your launcher fullscreen, and sit below other applications. |
i am just iamge something like openbox that we could config every window one by one... but your solution also seems ok,let's make the launcher borderless or notcloseable or make some scripts deamon on it. |
as your guideline, i am trying these: https://github.com/MirServer/ubuntu-frame/blob/main/src/frame_window_manager.cpp
as if we add the new command line option maximize_mode, seems we need to modify the MirRunner and DisplayConfiguration which they are NOT inside this project ? |
@timiil Frame-specific options are defined here, no need to modify MirRunner: |
like this ?
|
Yes, you just need an extra |
Rather than hacking Frame, why not use mir-kiosk? That already
Which is what I think the OP is asking for |
hello, as the title say, in some env , we may need to give the user press the 'X' button to exit the application; because in emmbed device may not have keyboard, so the user can not press ctrl+F4, ctrl +Q . and the application like 'gedit', 'firefox', when they show in ubuntu-frame mode, they dont have the title-bar at all, so , how do we can make the user to exit the app?
The text was updated successfully, but these errors were encountered: