Home Download Buy Blog Forum Support

Capturing Window Close Events

Capturing Window Close Events

Postby droppedonjapan on Fri Apr 11, 2014 8:48 pm

Hey, I noticed that my plugin doesn't get the "close_window" event if it is closed by the window manager (X on upper right). Is this normal?

The idea behind the plugin is to add a dialog box if you accidentally try and close Sublime Text, as I do this all the time with my current monitor setup. Right now there isn't an option to add a close dialog box on shutdown, I'm hoping to fix that.

The plugin does get the event if I go through the menu, but I'm hoping to do the window close check every time a window is closed, no matter the method. Is this possible? I'm not messing up the event capture portion of the code am I?

Plugin link.
droppedonjapan
 
Posts: 2
Joined: Fri Apr 11, 2014 8:42 pm

Re: Capturing Window Close Events

Postby tito on Sat Apr 12, 2014 5:16 pm

For now.. this is just "normal", work in progress..
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 876
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Capturing Window Close Events

Postby facelessuser on Sat Apr 12, 2014 5:26 pm

Edit: sorry. You said window close, not tab close.
facelessuser
 
Posts: 1576
Joined: Tue Apr 05, 2011 7:38 pm

Re: Capturing Window Close Events

Postby droppedonjapan on Mon Apr 14, 2014 3:56 pm

Right on, I figured this was the case. Is there an issue or feature tracker that I can follow for this? If there isn't, its not a big deal.
droppedonjapan
 
Posts: 2
Joined: Fri Apr 11, 2014 8:42 pm

Re: Capturing Window Close Events

Postby tito on Sat May 31, 2014 4:59 am

Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 876
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 5 guests