aboutsummaryrefslogtreecommitdiff
path: root/src/Tab.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Tab.cc')
-rw-r--r--src/Tab.cc25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/Tab.cc b/src/Tab.cc
index 3e00264..94591fd 100644
--- a/src/Tab.cc
+++ b/src/Tab.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Tab.cc,v 1.16 2002/01/20 02:15:23 fluxgen Exp $ 22// $Id: Tab.cc,v 1.17 2002/01/26 11:16:25 fluxgen Exp $
23 23
24#include "Tab.hh" 24#include "Tab.hh"
25 25
@@ -96,24 +96,25 @@ void Tab::createTabWindow() {
96 XSetWindowAttributes attrib; 96 XSetWindowAttributes attrib;
97 attrib.background_pixmap = None; 97 attrib.background_pixmap = None;
98 attrib.background_pixel = attrib.border_pixel = 98 attrib.background_pixel = attrib.border_pixel =
99 m_win->getScreen()->getWindowStyle()->tab.border_color.getPixel(); 99 m_win->getScreen()->getWindowStyle()->tab.border_color.getPixel();
100 attrib.colormap = m_win->getScreen()->getColormap(); 100 attrib.colormap = m_win->getScreen()->getColormap();
101 attrib.override_redirect = True; 101 attrib.override_redirect = True;
102 attrib.event_mask = ButtonPressMask | ButtonReleaseMask | 102 attrib.event_mask = ButtonPressMask | ButtonReleaseMask |
103 ButtonMotionMask | ExposureMask | EnterWindowMask; 103 ButtonMotionMask | ExposureMask | EnterWindowMask;
104 //Notice that m_size_w gets the TOTAL width of tabs INCLUDING borders 104 //Notice that m_size_w gets the TOTAL width of tabs INCLUDING borders
105 m_tabwin = XCreateWindow(m_display, m_win->getScreen()->getRootWindow(), 105 m_tabwin = XCreateWindow(m_display, m_win->getScreen()->getRootWindow(),
106 -30000, -30000, //TODO: So that it wont flicker or 106 -30000, -30000, //TODO: So that it wont flicker or
107 // appear before the window do 107 // appear before the window do
108 m_size_w - m_win->getScreen()->getWindowStyle()->tab.border_width_2x, 108 m_size_w - m_win->getScreen()->getWindowStyle()->tab.border_width_2x,
109 m_size_h - m_win->getScreen()->getWindowStyle()->tab.border_width_2x, 109 m_size_h - m_win->getScreen()->getWindowStyle()->tab.border_width_2x,
110 m_win->getScreen()->getWindowStyle()->tab.border_width, 110 m_win->getScreen()->getWindowStyle()->tab.border_width,
111 m_win->getScreen()->getDepth(), InputOutput, 111 m_win->getScreen()->getDepth(), InputOutput,
112 m_win->getScreen()->getVisual(), attrib_mask, &attrib); 112 m_win->getScreen()->getVisual(), attrib_mask, &attrib);
113
113 //set grab 114 //set grab
114 XGrabButton(m_display, Button1, Mod1Mask, m_tabwin, True, 115 XGrabButton(m_display, Button1, Mod1Mask, m_tabwin, True,
115 ButtonReleaseMask | ButtonMotionMask, GrabModeAsync, 116 ButtonReleaseMask | ButtonMotionMask, GrabModeAsync,
116 GrabModeAsync, None, Fluxbox::instance()->getMoveCursor()); 117 GrabModeAsync, None, Fluxbox::instance()->getMoveCursor());
117 118
118 //save to tabsearch 119 //save to tabsearch
119 Fluxbox::instance()->saveTabSearch(m_tabwin, this); 120 Fluxbox::instance()->saveTabSearch(m_tabwin, this);