all repos — fluxbox @ da545ea02e95e9c28f41cc013db84fc71cb9278e

custom fork of the fluxbox windowmanager

we already have a subroutine for this
markt markt
commit

da545ea02e95e9c28f41cc013db84fc71cb9278e

parent

1c05af4329e62b8bfaf3c0f032c52ace4eaa5975

1 files changed, 2 insertions(+), 13 deletions(-)

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

@@ -284,20 +284,9 @@ return false;

} } else if ((*it)->prop == HEAD && (*it)->orig == "[mouse]") { - // use the mouse position to determine which - // head to compare the window to - int x, y; - int win_x, win_y; // not used - Window root, child; // not used - unsigned int mask; // not used - if ( ! XQueryPointer(FbTk::App::instance()->display(), - win.screen().rootWindow().window(), - &root, &child, &x, &y, - &win_x, &win_y, &mask) ) { - return false; - } + int mouse_head = win.screen().getCurrHead(); char num[32]; - sprintf(num, "%d", win.screen().getHead(x, y)); + sprintf(num, "%d", mouse_head); if (!(*it)->negate ^ (getProperty((*it)->prop, win) == num)) return false;