all repos — fluxbox @ 00831fd9e9eb468fe4e7c77325e1c5548d742536

custom fork of the fluxbox windowmanager

fixed pointer check
fluxgen fluxgen
commit

00831fd9e9eb468fe4e7c77325e1c5548d742536

parent

1616e9d168c739246eb9af39e7830e95f2c715f9

1 files changed, 6 insertions(+), 4 deletions(-)

jump to
M src/Ewmh.ccsrc/Ewmh.cc

@@ -19,7 +19,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: Ewmh.cc,v 1.42 2004/01/21 15:52:21 fluxgen Exp $ +// $Id: Ewmh.cc,v 1.43 2004/02/14 12:15:35 fluxgen Exp $ #include "Ewmh.hh"

@@ -93,7 +93,7 @@ m_net_number_of_desktops,

m_net_current_desktop, m_net_active_window, m_net_close_window, - m_net_moveresize_window, + m_net_moveresize_window, m_net_workarea, // desktop properties

@@ -494,7 +494,8 @@ }

// return true if we did handle the atom here -bool Ewmh::checkClientMessage(const XClientMessageEvent &ce, BScreen * screen, WinClient * const winclient) { +bool Ewmh::checkClientMessage(const XClientMessageEvent &ce, + BScreen * screen, WinClient * const winclient) { if (ce.message_type == m_net_wm_desktop) { if (screen == 0) return true;

@@ -577,11 +578,12 @@ return true;

} else if (ce.message_type == m_net_close_window) { if (winclient == 0) return true; + cerr<<"We got _NET_CLOSE_WINDOW!"<<endl; // ce.window = window to close (which in this case is the win argument) winclient->sendClose(); return true; } else if (ce.message_type == m_net_moveresize_window) { - if (winclient == 0 && winclient->fbwindow()) + if (winclient == 0 || winclient->fbwindow() == 0) return true; // ce.data.l[0] = gravity and flags // ce.data.l[1] = x