diff --git a/data/gala.metainfo.xml.in b/data/gala.metainfo.xml.in index 3443358d3..ed624e94a 100644 --- a/data/gala.metainfo.xml.in +++ b/data/gala.metainfo.xml.in @@ -36,6 +36,7 @@ + When using wl-copy/wl-paste (wl-clipboard) the dock shows up although Terminal is maximized Window icons missing in the Show All Windows overview Blur behind modal shell protocol Window selection from dock overview doesn't focus the chosen window diff --git a/lib/Utils.vala b/lib/Utils.vala index 2616ebfd6..f971758eb 100644 --- a/lib/Utils.vala +++ b/lib/Utils.vala @@ -328,6 +328,13 @@ namespace Gala { } public static inline bool get_window_is_normal (Meta.Window window) { + // Some utilities like wl-copy/wl-paste create a 1x1 window to get access to clipboard + // Filter them as well + var buffer_rect = window.get_buffer_rect (); + if (buffer_rect.width <= 1 || buffer_rect.height <= 1) { + return false; + } + switch (window.window_type) { case Meta.WindowType.NORMAL: case Meta.WindowType.DIALOG: