fixed slit client die issue
fluxgen fluxgen
2 files changed,
8 insertions(+),
7 deletions(-)
M
src/Slit.cc
→
src/Slit.cc
@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Slit.cc,v 1.54 2003/05/15 23:30:06 fluxgen Exp $ +// $Id: Slit.cc,v 1.55 2003/05/17 11:00:50 fluxgen Exp $ #include "Slit.hh"@@ -334,7 +334,9 @@
reconfigure(); } - +unsigned int Slit::s_eventmask = StructureNotifyMask | SubstructureNotifyMask | + SubstructureRedirectMask | ButtonPressMask | + EnterWindowMask | LeaveWindowMask | ExposureMask; Slit::~Slit() { if (frame.pixmap != 0) screen().imageControl().removeImage(frame.pixmap);@@ -462,8 +464,7 @@ XMapRaised(disp, client->window);
XChangeSaveSet(disp, client->window, SetModeInsert); // reactivate events for frame.window - frame.window.setEventMask(SubstructureRedirectMask | - ButtonPressMask | EnterWindowMask | LeaveWindowMask | ExposureMask); + frame.window.setEventMask(s_eventmask); // setup event for slit client window client->enableEvents();@@ -528,8 +529,7 @@ XReparentWindow(disp, client->window, screen().rootWindow().window(),
client->x, client->y); XChangeSaveSet(disp, client->window, SetModeDelete); // reactivate events to frame.window - frame.window.setEventMask(SubstructureRedirectMask | ButtonPressMask | - EnterWindowMask | LeaveWindowMask | ExposureMask); + frame.window.setEventMask(s_eventmask); XFlush(disp); }
M
src/Slit.hh
→
src/Slit.hh
@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -/// $Id: Slit.hh,v 1.29 2003/05/15 11:17:27 fluxgen Exp $ +/// $Id: Slit.hh,v 1.30 2003/05/17 11:00:50 fluxgen Exp $ #ifndef SLIT_HH #define SLIT_HH@@ -146,6 +146,7 @@
std::auto_ptr<FbTk::XLayerItem> m_layeritem; std::auto_ptr<SlitTheme> m_slit_theme; std::auto_ptr<FbTk::Transparent> m_transp; + static unsigned int s_eventmask; };