all repos — fluxbox @ 127778b167888bdd8e19d798512b251ee8ca7dfd

custom fork of the fluxbox windowmanager

moved cursor to FbWinFrameTheme
fluxgen fluxgen
commit

127778b167888bdd8e19d798512b251ee8ca7dfd

parent

735776fbeb0d8818f45ff8f0b4928c9315ad682c

1 files changed, 10 insertions(+), 10 deletions(-)

jump to
M src/Window.ccsrc/Window.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: Window.cc,v 1.188 2003/06/06 14:45:13 rathnor Exp $ +// $Id: Window.cc,v 1.189 2003/06/11 14:51:56 fluxgen Exp $ #include "Window.hh"

@@ -370,8 +370,8 @@

Fluxbox &fluxbox = *Fluxbox::instance(); // setup cursors for resize grips - frame().gripLeft().setCursor(fluxbox.getLowerLeftAngleCursor()); - frame().gripRight().setCursor(fluxbox.getLowerRightAngleCursor()); + frame().gripLeft().setCursor(frame().theme().lowerLeftAngleCursor()); + frame().gripRight().setCursor(frame().theme().lowerRightAngleCursor()); frame().resize(m_client->width(), m_client->height()); TextButton *btn = new TextButton(frame().label(),

@@ -824,20 +824,20 @@

XGrabButton(display, Button1, Mod1Mask, frame().window().window(), True, ButtonReleaseMask | ButtonMotionMask, GrabModeAsync, - GrabModeAsync, None, fluxbox->getMoveCursor()); + GrabModeAsync, None, frame().theme().moveCursor()); //----grab with "all" modifiers - grabButton(display, Button1, frame().window().window(), fluxbox->getMoveCursor()); + grabButton(display, Button1, frame().window().window(), frame().theme().moveCursor()); XGrabButton(display, Button2, Mod1Mask, frame().window().window(), True, ButtonReleaseMask, GrabModeAsync, GrabModeAsync, None, None); XGrabButton(display, Button3, Mod1Mask, frame().window().window(), True, ButtonReleaseMask | ButtonMotionMask, GrabModeAsync, - GrabModeAsync, None, fluxbox->getLowerRightAngleCursor()); + GrabModeAsync, None, frame().theme().lowerRightAngleCursor()); //---grab with "all" modifiers - grabButton(display, Button3, frame().window().window(), fluxbox->getLowerRightAngleCursor()); + grabButton(display, Button3, frame().window().window(), frame().theme().lowerRightAngleCursor()); }

@@ -2525,7 +2525,7 @@ m_attaching_tab = client;

XGrabPointer(display, me.window, False, Button2MotionMask | ButtonReleaseMask, GrabModeAsync, GrabModeAsync, - None, Fluxbox::instance()->getMoveCursor(), CurrentTime); + None, frame().theme().moveCursor(), CurrentTime); m_last_move_x = me.x_root - 1; m_last_move_y = me.y_root - 1;

@@ -2786,7 +2786,7 @@ // grabbing (and masking) on the root window allows us to

// freely map and unmap the window we're moving. XGrabPointer(display, screen().rootWindow().window(), False, Button1MotionMask | ButtonReleaseMask, GrabModeAsync, GrabModeAsync, - screen().rootWindow().window(), fluxbox->getMoveCursor(), CurrentTime); + screen().rootWindow().window(), frame().theme().moveCursor(), CurrentTime); if (m_windowmenu.isVisible()) m_windowmenu.hide();

@@ -2971,7 +2971,7 @@ resizing = true;

Fluxbox *fluxbox = Fluxbox::instance(); XGrabPointer(display, win, false, ButtonMotionMask | ButtonReleaseMask, GrabModeAsync, GrabModeAsync, None, - (left ? fluxbox->getLowerLeftAngleCursor() : fluxbox->getLowerRightAngleCursor()), + (left ? frame().theme().lowerLeftAngleCursor() : frame().theme().lowerRightAngleCursor()), CurrentTime); int gx = 0, gy = 0;