mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-09 13:37:48 +00:00
Add ibeam cursor for Xlib
This commit is contained in:
@@ -205,6 +205,7 @@ public:
|
||||
X_CURSORS.m_pointer = XCreateFontCursor(m_xDisp, XC_left_ptr);
|
||||
X_CURSORS.m_hArrow = XCreateFontCursor(m_xDisp, XC_sb_h_double_arrow);
|
||||
X_CURSORS.m_vArrow = XCreateFontCursor(m_xDisp, XC_sb_v_double_arrow);
|
||||
X_CURSORS.m_ibeam = XCreateFontCursor(m_xDisp, XC_xterm);
|
||||
X_CURSORS.m_wait = XCreateFontCursor(m_xDisp, XC_watch);
|
||||
|
||||
/* The xkb extension requests that the X server does not
|
||||
|
||||
@@ -501,6 +501,8 @@ class WindowXlib : public IWindow
|
||||
return X_CURSORS.m_hArrow;
|
||||
case EMouseCursor::VerticalArrow:
|
||||
return X_CURSORS.m_vArrow;
|
||||
case EMouseCursor::IBeam:
|
||||
return X_CURSORS.m_ibeam;
|
||||
default: break;
|
||||
}
|
||||
return X_CURSORS.m_pointer;
|
||||
|
||||
@@ -11,6 +11,7 @@ struct XlibCursors
|
||||
Cursor m_pointer;
|
||||
Cursor m_hArrow;
|
||||
Cursor m_vArrow;
|
||||
Cursor m_ibeam;
|
||||
Cursor m_wait;
|
||||
};
|
||||
extern XlibCursors X_CURSORS;
|
||||
|
||||
Reference in New Issue
Block a user