UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    16.04 Libertine opens EVERYTHING in a new window

    Support
    6
    12
    1791
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      killerbee last edited by

      I can confirm this, its not completely reproducable, as sometimes it doe snto open up new windows and kind of sometimes auto closes them after clicking on an entry.....
      It is affecting all the apps I installed (firefox, thunderbird, gnome music player, vlc, ....)

      Y 1 Reply Last reply Reply Quote 0
      • Y
        Yougo @killerbee last edited by

        @killerbee indeed, so it's not depending on a specific toolkit (XUL, GTK3, QT, whatever libreoffice uses), but has to do with window classes not being recognized or not properly dealt with. which is a window manager thing.

        Rodney told me on telegram that the problem might go away when we move from xmir to xwayland, but no idea on ETA on that

        1 Reply Last reply Reply Quote 0
        • K
          killerbee last edited by

          probably 2050 after the climate change has swept away most parts of northern germany 😉

          D 1 Reply Last reply Reply Quote 0
          • D
            doniks @killerbee last edited by

            @killerbee said in 16.04 Libertine opens EVERYTHING in a new window:

            probably 2050 after the climate change has swept away most parts of northern germany 😉

            At which point we will have proven how UBports is stronger than the climate change. Makes you wonder about mankinds priorities 😉

            Y 1 Reply Last reply Reply Quote 0
            • D
              doniks @Yougo last edited by

              @yougo said in 16.04 Libertine opens EVERYTHING in a new window:

              Does anyone have this problem too

              Jup have it too. My assumption was that this is an intended feature development of xmir. But, seemingly a somewhat halfbaked feature that breaks many libertine use cases.

              Does xmir have an existence outside of libertine? Maybe it makes sense on some canonical iot snap mir setup?

              and is there any way to fix it?

              I haven't checked, but maybe xmir has some command line switches that could influence this behaviour?!

              Y 1 Reply Last reply Reply Quote 0
              • Y
                Yougo @doniks last edited by

                @doniks judging by how hot my FP2 can get, and FP2's are mostly found in northwestern Europe, do we have correlation?

                1 Reply Last reply Reply Quote 0
                • Y
                  Yougo @doniks last edited by Yougo

                  @doniks

                  it went from EVERYthing in the same xsession (and 1 xsession per window) to EVERYthing in a new window (don't know if it's multiple windows per xsession or worse, every gui item getting it's own xsession now)

                  i suspect xmir recently became aware of new windows, but either

                  1. still lacks the abilty to classify, or
                  2. has support for window classes but is not getting the proper instructions?

                  thinking about it, if every gui item gets it's own xsession, xmir is not wrong to give it a new window, so
                  3. xmir has support for window classes, probably gets the right instructions too, but only receives new xsessions == new window

                  how does Mir itself handle it? (don't have a mir session to play with on my pc)
                  /Edit:
                  Fun fact: i just tried with libreoffice on wayland and on Xorg: Wayland doesn't allow floating toolbars! i have to dock it somewhere, where on Xorg, i can have floating toolbars. the floating toolbar even shows on the panel as a separate window (tooltips and menus don't though)

                  dobey 1 Reply Last reply Reply Quote 0
                  • dobey
                    dobey @Yougo last edited by

                    @yougo They are definitely not new X sessions. That would imply starting another copy of Xmir on a new DISPLAY and having part of an app displayed there versus on the original DISPLAY, which is I am pretty sure, impossible.

                    It could be that the newer Xmir in 16.04 is now creating new Mir surfaces for each X11 window, where it was not doing so before (and really probably should not be doing so now).

                    1 Reply Last reply Reply Quote 0
                    • H
                      haveaniceday last edited by

                      Is it possible to revert to the old behaviour, where the unity window basically is one x11 screen, containing everything?
                      Is Xmir still being developed by the Canonical Mir team?

                      1 Reply Last reply Reply Quote 0
                      • H
                        haveaniceday last edited by

                        I found a work-around that reverts from the always-open-a-new-window behaviour to the old everything-in-one-single-windows. This way, menus in libertine kinda work again.

                        Open /usr/bin/libertine-xmir in an editor and change

                        exec Xmir -rootless $@
                        

                        into

                        exec Xmir -rootless -flatten $@
                        

                        This is the command with which libertine launches the Xmir instance. The -flatten parameter "Flatten(s) rootless X windows into a single surface" (from the Xmir --help). Note that the root partition must be writable, otherwise you can't edit the file.

                        The best option of course would be a more integrated handling of menus by mir itself. Maybe xwayland will resolve the issue, as @dobey mentioned.

                        1 Reply Last reply Reply Quote 2
                        • tuxus
                          tuxus last edited by

                          I tested this work-around on my M10FHD with xenial dev and in result LO crashes by start now.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post