forked from AuroraMiddleware/gtk
tooltip: Remove unnecessary checks
Coverity uses these as clues to complain.
This commit is contained in:
parent
361915628d
commit
0ebcc56a77
@ -1145,8 +1145,6 @@ gtk_tooltip_position (GtkTooltip *tooltip,
|
||||
|
||||
found:
|
||||
/* Show it */
|
||||
if (tooltip->current_window)
|
||||
{
|
||||
if (x + width > monitor.x + monitor.width)
|
||||
x -= x - (monitor.x + monitor.width) + width;
|
||||
else if (x < monitor.x)
|
||||
@ -1167,7 +1165,8 @@ found:
|
||||
|
||||
#ifdef GDK_WINDOWING_WAYLAND
|
||||
/* set the transient parent on the tooltip when running with the Wayland
|
||||
* backend to allow correct positioning of the tooltip windows */
|
||||
* backend to allow correct positioning of the tooltip windows
|
||||
*/
|
||||
if (GDK_IS_WAYLAND_DISPLAY (display))
|
||||
{
|
||||
GtkWidget *toplevel;
|
||||
@ -1197,7 +1196,6 @@ found:
|
||||
|
||||
gtk_window_move (GTK_WINDOW (tooltip->current_window), x, y);
|
||||
gtk_widget_show (GTK_WIDGET (tooltip->current_window));
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user