From f277264e9a1cb3588d5f75072ebdb2028fbf8aac Mon Sep 17 00:00:00 2001 From: Lyubomir Marinov Date: Wed, 26 Nov 2008 07:49:05 +0000 Subject: [PATCH] Makes the button bar in full-screen mode appear whenever the mouse pointer is within its height and the screen width, not just the button bar width. --- .../impl/gui/main/call/CallParticipantPanel.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/net/java/sip/communicator/impl/gui/main/call/CallParticipantPanel.java b/src/net/java/sip/communicator/impl/gui/main/call/CallParticipantPanel.java index ea33b3b96..3ae2dee63 100644 --- a/src/net/java/sip/communicator/impl/gui/main/call/CallParticipantPanel.java +++ b/src/net/java/sip/communicator/impl/gui/main/call/CallParticipantPanel.java @@ -13,7 +13,6 @@ import javax.swing.*; import javax.swing.Timer; -import net.java.sip.communicator.impl.gui.customcontrols.*; import net.java.sip.communicator.impl.gui.i18n.*; import net.java.sip.communicator.impl.gui.utils.*; import net.java.sip.communicator.service.protocol.*; @@ -766,9 +765,12 @@ public void mouseMoved(MouseEvent event) Point pointInContentPane = SwingUtilities.convertPoint(component, event .getPoint(), contentPane); + Rectangle hotSpotBounds = buttonBar.getBounds(); - buttonBar.setVisible(buttonBar.getBounds().contains( - pointInContentPane)); + hotSpotBounds.x = 0; + hotSpotBounds.width = contentPane.getWidth(); + buttonBar.setVisible(hotSpotBounds + .contains(pointInContentPane)); } } });