aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-07-10 12:00:49 (GMT)
committerfluxgen <fluxgen>2003-07-10 12:00:49 (GMT)
commit4fb480525128bbc3696e4f3316fbd2184d3cd5a2 (patch)
tree34e855f27492424d1b267be66249b8f94bda5032 /src/FbTk
parent0e1a719781b0a28ddf3f6d8dbdd10a963fef9bfa (diff)
downloadfluxbox-4fb480525128bbc3696e4f3316fbd2184d3cd5a2.zip
fluxbox-4fb480525128bbc3696e4f3316fbd2184d3cd5a2.tar.bz2
minor cleaning
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/Menu.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index 67ec949..c9943b3 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Menu.cc,v 1.27 2003/07/03 12:47:22 fluxgen Exp $ 25// $Id: Menu.cc,v 1.28 2003/07/10 11:57:37 fluxgen Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -83,7 +83,6 @@ Menu *Menu::s_focused = 0;
83Menu::Menu(MenuTheme &tm, int screen_num, ImageControl &imgctrl): 83Menu::Menu(MenuTheme &tm, int screen_num, ImageControl &imgctrl):
84 m_theme(tm), 84 m_theme(tm),
85 m_screen_num(screen_num), 85 m_screen_num(screen_num),
86 m_prev_focused_window(0),
87 m_image_ctrl(imgctrl), 86 m_image_ctrl(imgctrl),
88 m_display(FbTk::App::instance()->display()), 87 m_display(FbTk::App::instance()->display()),
89 m_parent(0), 88 m_parent(0),
@@ -1035,11 +1034,9 @@ bool Menu::isItemEnabled(unsigned int index) const {
1035 1034
1036void Menu::handleEvent(XEvent &event) { 1035void Menu::handleEvent(XEvent &event) {
1037 if (event.type == FocusOut) { 1036 if (event.type == FocusOut) {
1038 cerr<<"Focus out"<<endl;
1039 if (s_focused == this) 1037 if (s_focused == this)
1040 s_focused = 0; 1038 s_focused = 0;
1041 } else if (event.type == FocusIn) { 1039 } else if (event.type == FocusIn) {
1042 cerr<<"Focus in"<<endl;
1043 if (s_focused != this) 1040 if (s_focused != this)
1044 s_focused = this; 1041 s_focused = this;
1045 } 1042 }