Giter Site home page Giter Site logo

Comments (11)

mattkae avatar mattkae commented on June 12, 2024 1

Sorry for getting back so late 😅 A bunch of traveling and a bunch of other mir/miracle related work has taken my attention lately.

However I do understand better what you mean now! The compositor does technically have the ability to force close a window (e.g. by force closing the Wayland socket). I also have run into this same problem when processes like CLion fail to close, and I usually end up having to kill -9 <pid> it to get out of that situation. There might be a better way now that you bring it up...

from miracle-wm.

GHNewbiee avatar GHNewbiee commented on June 12, 2024 1

I also have run into this same problem when processes like CLion fail to close, and I usually end up having to kill -9 it to get out of that situation.

If system is frozen, I suspect you cannot even open a console window (terminals switch may work). Only mouse pointer is working sometimes . Hence, click on Skull button should immediately ( in the highest priority) execute the kill -9 <pid> command to release occupied memory and remove cpu load.

from miracle-wm.

mattkae avatar mattkae commented on June 12, 2024

Interesting thought! What would be the feature here? Would it be something like:

The WM can be configured to kill applications according to some order of priority when the CPU spikes above 90%

from miracle-wm.

GHNewbiee avatar GHNewbiee commented on June 12, 2024

I am not a fun of autokilling applications because if a financial app is auto-killed and money gets lost , user will proceed to auto-self-killiing ! 😉😊

The ideal would be windows never become unresponsive in some smart way so that user can close any window any moment in dt time without delay to recover memory.

The problem exists, it's real . I have faced it many times .

Hence, let's start from the question, "is it possible theoretically and practically a window never becomes unresponsive in user-space?"

from miracle-wm.

GHNewbiee avatar GHNewbiee commented on June 12, 2024

On the other hand , the idea of closing order would be a step forward .

from miracle-wm.

GHNewbiee avatar GHNewbiee commented on June 12, 2024

Please pay attention that I write about window responsiveness and not application responsiveness.

The application may "freeze" but window controls never do! So, when I decide to closie a window, it sends a "close" signal with highest priority to the application or a "kill" signal. Any pending operation apart from saving eg swapping is halt and closing operation begins .

I.e. a safe memory area in user space is created which holds the window operations separate from applications ones. Something like that .

What do you think ?

from miracle-wm.

GHNewbiee avatar GHNewbiee commented on June 12, 2024

Windows have 3 buttons minimize, maximize/restore and close.

What about an opfional fourth one kill as a "Skull". This button has to remain active even when the system does not respond at all.

😲😳

from miracle-wm.

GHNewbiee avatar GHNewbiee commented on June 12, 2024

A kind of an "Emergency Shutdown" switch activated manually by pressing a "skull" button.

from miracle-wm.

mattkae avatar mattkae commented on June 12, 2024

I would also potentially like that feature 😄 Interesting idea. I think it's a good potential "kill switch" feature. It might not manifest itself as a skull button, since many applications only want client-side decorations, but it could be a keybind of some sort that the compositor handles.

from miracle-wm.

GHNewbiee avatar GHNewbiee commented on June 12, 2024

Common users are not familiar with keybinds . A lot of people use a machine ONLY through a GUI and mouse. They use only what they can see in DE at first or second sight (menu, options , etc). They hate mystical features.

Try to make the features apparent to them through GUI and one-click if possible.

Note: I use pc the last 40 years , I do only know/remember cut/copy,/paste. I have spent for configuring keybinds no more than 2-3 hours in my whole life and I have regretted it. Especially those ones which will be used once a month or 3-6 months.

IMHO , add the Skull button in API. Any app wants only client-side decorations will avoid calling it. It could also be optionally added to windows by users . Just give the freedom to the users to choose to use it or not.

from miracle-wm.

GHNewbiee avatar GHNewbiee commented on June 12, 2024

It would be possible for the Skull button to automatically appear (a dynamic feature) in windows when used memory and/or cpu load reach preset values defined by user as options .

IMHO , that would be a great feature!

from miracle-wm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.