Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
totaam opened this issue Mar 25, 2020 · 4 comments
Closed
Labels

Comments

@totaam
Copy link
Collaborator

totaam commented Mar 25, 2020

Issue migrated from trac ticket # 2680

component: platforms | priority: critical | resolution: upstream

2020-03-25 12:30:39: antoine created the issue


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?)
@totaam
Copy link
Collaborator Author

totaam commented Mar 25, 2020

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.

@totaam
Copy link
Collaborator Author

totaam commented May 10, 2020

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

@totaam
Copy link
Collaborator Author

totaam commented Jul 21, 2020

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()

@totaam
Copy link
Collaborator Author

totaam commented Aug 11, 2020

Reported upstream: undecorated windows can no longer be iconified on macos

(see also #2822)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant