skins: Double-click on bitrate textbox leads to strange dock behavior
If the textbox which contains the bitrate and quality is double-clicked,
the main window shades.
Then this window cannot be closed anymore
because the equalizer or playlist window follows the mouse cursor.
This is caused by a wrong Y value in "skins/ui_main.c/mainwin_mouse_button_press()".
What is going wrong here? The coordinates around the textbox are all correct.
#1 Updated by John Lindgren about 4 years ago
- Status changed from New to Closed
- Target version set to 3.5
- % Done changed from 0 to 100
- Affects version 3.4.3 added
The problem is that the x and y values in the GdkEventButton structure are relative to the GdkWindow clicked on (in this case, the textbox rather than the main window). I have fixed this by ignoring events that do not come from the GdkWindow of the main window. Possibly better would be to adjust the x and y values by the relative offset of the two GdkWindows, but I don't think that's necessary here.