Skip to content

Commit e3188b2

Browse files
committed
Fix color profile support on Wayland.
On Wayland we do not get x,y configuration position on event data. So let's configure each time the window is moved under Wayland.
1 parent 78199ce commit e3188b2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/gui/gtk.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,12 @@ static gboolean _window_configure(GtkWidget *da,
10111011
{
10121012
static int oldx = 0;
10131013
static int oldy = 0;
1014-
if(oldx != event->configure.x || oldy != event->configure.y)
1014+
1015+
// FIXME: On Wayland we always configure as the even->configure x, y
1016+
// are always 0.
1017+
if(oldx != event->configure.x
1018+
|| oldy != event->configure.y
1019+
|| dt_gui_get_session_type() == DT_GUI_SESSION_WAYLAND)
10151020
{
10161021
// maybe we are on another screen now with > 50% of the area
10171022
dt_colorspaces_set_display_profile(DT_COLORSPACE_DISPLAY);

0 commit comments

Comments
 (0)