DrewNaylor / Retiled

An attempt at creating a "desktop" environment mainly for Linux phones and tablets that's similar in function to some parts of Microsoft's Windows Phone 8.x, primarily the Start screen, Search app, navigation bar, Action Center, and the status bar. Development is mainly being done using the PinePhone, so that'll be the main supported device.
https://codeberg.org/DrewNaylor/Retiled
Apache License 2.0
66 stars 3 forks source link

If in multitasking, have the Back button exit multitasking instead of pressing Escape. #133

Open DrewNaylor opened 2 years ago

DrewNaylor commented 2 years ago

This isn't implemented yet, and I need to get to bed but I just keep thinking of stuff I need to write down.

DrewNaylor commented 1 year ago

It would also be a really good idea to have the compositor detect the Escape key being pressed and have it leave multitasking, but not allow any apps to grab it. Maybe it would only allow the shortcut to be activated if in multitasking, but otherwise send it on (just realized: "An Escape Sent On")? Then, the issue is that we'd need to ensure that popups (in any app, but also for volume, message boxes, and the Action Center) properly hide themselves when they show up and the compositor doesn't grab input when it's not supposed to. Just realized too that there needs to be a way to ensure that stuff like message boxes don't go to a separate item in the multitasking list and instead appear on top.

Edit: maybe there needs to be a D-Bus message that can be sent to the compositor that says to not exit multitasking and instead to send Escape. This would be useful for the Action Center as well as system message boxes and other notifications that display as a message box, such as when an alarm goes off. Upon the message box/Action Center closing/hiding, another D-Bus message is sent saying to allow going out of multitasking. But I just thought of something else, and that is what happens if multiple message boxes are up? Not sure how to handle that. Or maybe we should store the number of messageboxes in an integer or something, and upon closing each one, the number goes down like unpinning tiles. This can be done in addition to the thing where we directly tell it not to exit multitasking via the Back button, so that it checks both and only goes out of multitasking if both are 0 and false, depending on which one it is. Only issue with the messagebox-counting is that we need to have the compositor handle the messageboxes directly. Edit 2: and those messageboxes need to be popups when in multitasking to count as something we need to make sure don't exit multitasking rather than just for an app, I think.

DrewNaylor commented 1 year ago

So now you can use Escape to leave multitasking last I knew, but I hadn't implemented any of the more advanced features detailed here. I might be making this into a Look-and-Feel package for Plasma Mobile, too, or a fork of it, if necessary.