Giter Site home page Giter Site logo

beyluta / one-click-quits Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 47 KB

One-click-quits is a MacOS program that automatically quits your applications when you click the red "Close" button.

License: MIT License

C++ 95.55% Makefile 1.58% C 2.87%
background-jobs background-process close close-window macos macosx quit window-close

one-click-quits's People

Watchers

 avatar

one-click-quits's Issues

Windowed applications being terminated when another goes into fullscreen

Description

If one application goes into fullscreen mode, then all applications underneath it will terminate.

Cause

The program counts an application as being "closed" when:

  • It is no longer visible in any screen
  • It isn't the same size as the current monitor it is displayed on
  • It isn't minimized

When it goes out of view due to another application being set to fullscreen, then all of the aforementioned prerequisites become fulfilled, thus ending the application via a SIGTERM code.

Possible solutions

  • Find some kind of flag that only triggers when applications are behind a fullscreen application
  • Add a fourth condition that needs to be met for an application to be "closed"
  • Detect when the window instance of the pid is no longer available

Apps do not close sometimes

What's the issue?

Aside from the apps that should not close, such as background processes, there are instance in which an app that should close on exit, does not. This is not due to the Sigterm command: the if statement responsible for detecting whether an app should close, does not engage.

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.