xpra icon
Bug tracker and wiki

Opened 7 months ago

Closed 3 months ago

Last modified 2 months ago

#2680 closed defect (upstream)

GTK programmatic iconification of the deepin-music window does not work

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: critical Milestone: 4.1
Component: platforms Version: 3.0.x
Keywords: Cc:

Description (last modified by Antoine Martin)

Tested with 4.0-r25775 on the old build VM (10.11.x) and the new one (10.14.x #2505). Only works on the former.

Not sure what to do:

  • make the release builds using the old VM?
  • release without iconification support
  • find the bug (hard?)

Change History (4)

comment:1 Changed 7 months ago by Antoine Martin

Description: modified (diff)
Status: newassigned
Summary: GTK programmatic iconification broken with macos 10.14.x build VMGTK programmatic iconification of the deepin-music window does not work

The "iconify" button in the "window states" toolbox does work, both running native and through xpra, so there must be something different about the deepin-music window I've used for testing.

comment:2 Changed 6 months ago by Antoine Martin

Milestone: 4.04.1

Will release with the "new" VM and fix later..

comment:3 Changed 3 months ago by Antoine Martin

Found the bug using the xpra toolbox "states" tool, GTK fails to minimize windows which are not decorated.

Here's the reproducer:

import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk

def main():
	w = Gtk.Window(type=Gtk.WindowType.TOPLEVEL)
	w.set_title("Window Iconify")
	w.set_size_request(320, 200)
	w.set_position(Gtk.WindowPosition.CENTER)
	w.set_decorated(False)
	w.connect("delete_event", Gtk.main_quit)
	b = Gtk.Button(label="Iconify")
	b.connect('clicked', lambda b : w.iconify())
	w.add(b)
	w.show_all()
	Gtk.main()

if __name__ == "__main__":
	main()

comment:4 Changed 3 months ago by Antoine Martin

Resolution: upstream
Status: assignedclosed
Last edited 2 months ago by Antoine Martin (previous) (diff)
Note: See TracTickets for help on using tickets.