• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

16.04 Libertine opens EVERYTHING in a new window

Scheduled Pinned Locked Moved Support
12 Posts 6 Posters 2.4k Views 2 Watching
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.
    • Y Offline
      Yougo
      last edited by Yougo 30 Aug 2018, 16:21

      Hi, I can’t imagine no one has noticed this yet but couldn’t find anything about it yet. Feel free to merge/move this to where it belongs

      Ever since updating to 16.04/devel, once libertine started working again, it works differently from how it was in 15.04.

      It used to open everything an app did in the same window. Even new apps started by an app, like when you launch gedit from terminal. This was cumbersome, but the new situation is the other extreme: everything, tooltips, drop down menus, right-click menus, dialogue boxes, everything opens in a new window. Some middle road must be able to be achieved?

      See also the github issue I made for it. https://github.com/ubports/libertine/issues/10

      Does anyone have this problem too, and is there any way to fix it? Is this an xmir/mir/Xorg thing?

      0_1535646251637_7AE257F4-31F9-4D92-8059-D9C9006E8D62.png 0_1535646240100_D3D07229-E4D0-4973-A0AA-C91C832DF79B.png
      0_1535646262808_2CB1C2B7-5741-4CB4-872C-2CCA2C5C8C9C.png 0_1535646273933_578D76BD-9649-4463-9A21-4965FDBCF44E.png

      D 1 Reply Last reply 31 Aug 2018, 07:12 Reply Quote 1
      • K Offline
        killerbee
        last edited by 30 Aug 2018, 17:22

        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 30 Aug 2018, 17:28 Reply Quote 0
        • Y Offline
          Yougo @killerbee
          last edited by 30 Aug 2018, 17:28

          @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 Offline
            killerbee
            last edited by 30 Aug 2018, 17:55

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

            D 1 Reply Last reply 31 Aug 2018, 07:08 Reply Quote 0
            • D Offline
              doniks @killerbee
              last edited by 31 Aug 2018, 07:08

              @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 2 Sept 2018, 11:47 Reply Quote 0
              • D Offline
                doniks @Yougo
                last edited by 31 Aug 2018, 07:12

                @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 2 Sept 2018, 12:02 Reply Quote 0
                • Y Offline
                  Yougo @doniks
                  last edited by 2 Sept 2018, 11:47

                  @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 Offline
                    Yougo @doniks
                    last edited by Yougo 9 Feb 2018, 12:24 2 Sept 2018, 12:02

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

                    D 1 Reply Last reply 2 Sept 2018, 13:01 Reply Quote 0
                    • D Offline
                      dobey @Yougo
                      last edited by 2 Sept 2018, 13:01

                      @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 Offline
                        haveaniceday
                        last edited by 30 Sept 2018, 15:47

                        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 Offline
                          haveaniceday
                          last edited by 1 Oct 2018, 21:08

                          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
                          • T Offline
                            tuxus
                            last edited by 15 Oct 2018, 21:06

                            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