<Swing Dev> [9] Review request for 8142534: [TEST_BUG] Test javax/swing/JMenu/8072900/WrongSelectionOnMouseOver.java fails for Ubuntu 15.10

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

<Swing Dev> [9] Review request for 8142534: [TEST_BUG] Test javax/swing/JMenu/8072900/WrongSelectionOnMouseOver.java fails for Ubuntu 15.10

Semyon Sadetsky
Hello,

Please review fix for JDK9:

bug: https://bugs.openjdk.java.net/browse/JDK-8142534

webrev: http://cr.openjdk.java.net/~ssadetsky/8142534/webrev.00/

In Ubuntu starting version 15 the current active windows gets an
external translucent shadow which serves as a sensitive border for
resizing. So all mouse clicks that fall into ~10 px distance around the
active window belongs are captured by WM, even if another window is seen
at the click point.

In the test 2 windows are created beside to each other and in the second
step of the test a mouse click is emulated to activate the 2nd window
menu, but the click happens in 5px from the 1st window edge which is
active and captured by WM as the 1st window resize event.

To fix this Ubuntu specific issue the suggested patch increases the
distance between two windows by 50 pixels.

--Semyon


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: <Swing Dev> [9] Review request for 8142534: [TEST_BUG] Test javax/swing/JMenu/8072900/WrongSelectionOnMouseOver.java fails for Ubuntu 15.10

Yuri Nesterenko
+1

-yan

On 04/11/2017 09:25 PM, Semyon Sadetsky wrote:

> Hello,
>
> Please review fix for JDK9:
>
> bug: https://bugs.openjdk.java.net/browse/JDK-8142534
>
> webrev: http://cr.openjdk.java.net/~ssadetsky/8142534/webrev.00/
>
> In Ubuntu starting version 15 the current active windows gets an
> external translucent shadow which serves as a sensitive border for
> resizing. So all mouse clicks that fall into ~10 px distance around the
> active window belongs are captured by WM, even if another window is seen
> at the click point.
>
> In the test 2 windows are created beside to each other and in the second
> step of the test a mouse click is emulated to activate the 2nd window
> menu, but the click happens in 5px from the 1st window edge which is
> active and captured by WM as the 1st window resize event.
>
> To fix this Ubuntu specific issue the suggested patch increases the
> distance between two windows by 50 pixels.
>
> --Semyon
>
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: <Swing Dev> [9] Review request for 8142534: [TEST_BUG] Test javax/swing/JMenu/8072900/WrongSelectionOnMouseOver.java fails for Ubuntu 15.10

Sergey Bylokhov
+1

> 12 апр. 2017 г., в 11:13, Yuri Nesterenko <[hidden email]> написал(а):
>
> +1
>
> -yan
>
> On 04/11/2017 09:25 PM, Semyon Sadetsky wrote:
>> Hello,
>>
>> Please review fix for JDK9:
>>
>> bug: https://bugs.openjdk.java.net/browse/JDK-8142534
>>
>> webrev: http://cr.openjdk.java.net/~ssadetsky/8142534/webrev.00/
>>
>> In Ubuntu starting version 15 the current active windows gets an
>> external translucent shadow which serves as a sensitive border for
>> resizing. So all mouse clicks that fall into ~10 px distance around the
>> active window belongs are captured by WM, even if another window is seen
>> at the click point.
>>
>> In the test 2 windows are created beside to each other and in the second
>> step of the test a mouse click is emulated to activate the 2nd window
>> menu, but the click happens in 5px from the 1st window edge which is
>> active and captured by WM as the 1st window resize event.
>>
>> To fix this Ubuntu specific issue the suggested patch increases the
>> distance between two windows by 50 pixels.
>>
>> --Semyon
>>
>>
>

Loading...