Skip to content
Snippets Groups Projects
Commit 80028b06 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune Committed by Olivier Fourdan
Browse files

tabwin: Comply with the primary monitor setting


If the user selected a primary monitor, the Alt+Tab window will only
appear on that monitor, otherwise on all of them.

To quote the GDK documentation for gdk_display_get_primary_monitor:

> [...], specialized desktop applications such as panels should place
> themselves on the primary monitor.

It is however not possible to use gdk_display_get_primary_monitor and
also respect the user's setting. Despite what the online documentation
says, recent versions of GTK+3 may no longer return a null value and
will instead pick one monitor as the primary if there isn't already one
defined. The nullable marker [1] for the return value was eventually
dropped.

In other words, whether the user selected a primary monitor or not
gdk_display_get_primary_monitor will always return one.

Signed-off-by: default avatarDridi Boukelmoune <dridi@fedoraproject.org>

[1] https://gitlab.gnome.org/GNOME/gtk/commit/76d95c312dde
parent 387dc32f
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment