Windows not resizable via mouse

Windows that I create via Gtk.Builder don’t have the resize "grips"when I hover the mouse over the window edges. Why? I don’t see any settings in Cambalache for this, or anything in the docs for Gtk.Window that discusses enabling resizing via the mouse. I can maximize the window with SUPER + Up. My builder xml:

<!-- Created with Cambalache 0.92.1 -->
<interface>
  <!-- interface-name example_app.ui -->
  <requires lib="gtk" version="4.12"/>
  <object class="GtkWindow" id="main_window">
    <property name="receives-default">True</property>
    <child>
      <object class="GtkBox">
        <property name="spacing">5</property>
        <child>
          <object class="GtkBox" id="customer_list_box">
            <property name="orientation">vertical</property>
          </object>
        </child>
      </object>
    </child>
  </object>
</interface>

Most of the example app ( or simplest example that demonstrates the issue ):


gi.require_version("Gtk", "4.0")
gi.require_version("Adw", "1")

from gi.repository import Gtk , Adw

class ExampleApplication( Adw.Application ):

    def __init__( self , **kwargs ):
        super().__init__( **kwargs )
        self.connect( 'activate' , self.on_activate )

    def on_activate( self , app ):

        self.builder = Gtk.Builder( self )
        self.builder.add_from_file( 'example_app.ui' )
        self.example_window = self.builder.get_object('main_window')
        self.example_window.set_application( self )

        self.example_window.present()

app = ExampleApplication()

app.run()

Hi,

That’s unexpected…
Which environment? X11, Wayland?

If under GNOME, do you use gnome-shell extensions? (some use to break this kind of things)

1 Like

OK good call. I disabled all extensions, and I see I get resize handles now. The strangest thing is … .when I then re-enable all extensions ( and even log out and back in ) … I still have resize handles. I was also thrown by the fact that only my own app appeared affected. Anyway, I’ll disable extensions before asking this kind of question again. Thanks!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.