Re: multimedia keyboard
Jozef Riha <[email protected]>
| Newsgroups | gmane.comp.window-managers.fluxbox.user |
|---|---|
| Message-ID | <[email protected]> |
patching fb 0.9.13: patching file Keys.cc Hunk #1 FAILED at 135. 1 out of 1 hunk FAILED -- saving rejects to file Keys.cc.rej patching file fluxbox.cc Hunk #1 FAILED at 1085. Hunk #2 FAILED at 1118. 2 out of 2 hunks FAILED -- saving rejects to file fluxbox.cc.rej are you positive that this patch will stop popping up the menu when the special key containing the win_logo scancode is pressed? thanks. -- joe On 5/24/05, Andrey V. Elsukov <[email protected]> wrote: > Jozef Riha wrote: > > into keys config file and press the special key, the root menu pops up > > instantly together with the desired action being performed. > > I have make a small patch for RootMenu show at release a WinLogo key. > > -- > WBR, Andrey V. Elsukov > > > --- src/Keys.cc.orig Sat May 7 02:00:29 2005 > +++ src/Keys.cc Tue May 24 02:48:56 2005 > @@ -135,6 +135,12 @@ > > FbTk::App::instance()->sync(false); > > + // keybindigs for RootMenu > + FbTk::KeyUtil::grabKey(XKeysymToKeycode( > + FbTk::App::instance()->display(), XK_Super_L), 0); > + FbTk::KeyUtil::grabKey(XKeysymToKeycode( > + FbTk::App::instance()->display(), XK_Super_R), 0); > + > //open the file > ifstream infile(filename); > if (!infile) > --- src/fluxbox.cc.orig Fri May 13 16:09:17 2005 > +++ src/fluxbox.cc Tue May 24 02:46:33 2005 > @@ -1085,8 +1085,16 @@ > if (keyScreen() == 0 || mouseScreen() == 0) > return; > > + static bool needMenu = false; > + KeySym key = XLookupKeysym(&ke, 0); > + > switch (ke.type) { > case KeyPress: > + > + if (key == XK_Super_L || key == XK_Super_R) > + needMenu = true; > + else needMenu = false; > + > m_key->doAction(ke); > break; > case KeyRelease: { > @@ -1110,6 +1118,11 @@ > m_watch_keyrelease = 0; > } > } > + > + if (needMenu && (key == XK_Super_L || key == XK_Super_R)) { > + FbCommands::ShowRootMenuCmd cmd; > + cmd.execute(); > + } > > break; > } > > > ------------------------------------------------------- SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate online with coworkers and clients while avoiding the high cost of travel and communications. There is no equipment to buy and you can meet as often as you want. Try it free.http://ads.osdn.com/?ad_idt02&alloc_id135&op=click