Skip to content

Commit

Permalink
menu-applet: don't create a zero-width vector box
Browse files Browse the repository at this point in the history
fixes the menu growing during keynav since 1c513b2

fixes linuxmint#7109
  • Loading branch information
itzexor committed Dec 1, 2017
1 parent 4c17a4d commit 288379d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions files/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js
Original file line number Diff line number Diff line change
Expand Up @@ -2110,6 +2110,10 @@ MyApplet.prototype = {
let xformed_mouse_y = my-by;
let w = Math.max(right_x-xformed_mouse_x, 0);

// the mouse may not be hovering the category buttons during key nav
if (w == 0)
return;

let ulc_y = xformed_mouse_y + 0;
let llc_y = xformed_mouse_y + 0;

Expand Down

0 comments on commit 288379d

Please sign in to comment.