You are not logged in.

#1 2024-04-23 20:45:39

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 297

[SOLVED] evince: unable to resize window

hi, I can no longer resize the evince window: if I go with the mouse to the corner of the window the icon to resize it doesn't appear. if instead I press the right mouse button and then select "Resize" it works. how do you explain it? it worked once
I don't use any DE, only openbox as a windows manager and X.

the terminal output gives no message

Last edited by quellen (2024-04-26 19:56:24)


sorry for my bad english

Offline

#2 2024-04-26 12:02:54

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 297

Re: [SOLVED] evince: unable to resize window

if instead of openbox I use metacity as windows manager, this issue does not occur. so it's an openbox problem... how can i solve it?


sorry for my bad english

Offline

#3 2024-04-26 14:55:40

seth
Member
Registered: 2012-09-03
Posts: 51,727

Re: [SOLVED] evince: unable to resize window

The window probably ensa up being undecorated by openbox for CSD?
But then the client does't provide the proper CSD or it doesn't work because of gtk event handling being "broken"?

xwininfo # click the window
xprop #dto

And try to "export GDK_CORE_DEVICE_EVENTS=1" to the session.

Online

#4 2024-04-26 15:58:35

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 297

Re: [SOLVED] evince: unable to resize window

seth wrote:

The window probably ensa up being undecorated by openbox for CSD?
But then the client does't provide the proper CSD or it doesn't work because of gtk event handling being "broken"?

xwininfo # click the window
xprop #dto

And try to "export GDK_CORE_DEVICE_EVENTS=1" to the session.

thx for reply.


$ xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x1400008 "Documenti recenti"

  Absolute upper-left X:  0
  Absolute upper-left Y:  26
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 600
  Height: 600
  Depth: 24
  Visual: 0x416
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x1400007 (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+26  -1320+26  -1320-454  +0-454
  -geometry 600x600+0+26
$ xprop
_NET_WM_ICON_GEOMETRY(CARDINAL) = 644, 0, 150, 26
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
_NET_WM_DESKTOP(CARDINAL) = 0
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_MOVE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW, _OB_WM_ACTION_UNDECORATE
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 0, 0, 0, 0
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 0, 0
_NET_WM_STATE(ATOM) = 
_OB_APP_TYPE(UTF8_STRING) = "normal"
_OB_APP_TITLE(UTF8_STRING) = "Documenti recenti"
_OB_APP_GROUP_CLASS(UTF8_STRING) = "Evince"
_OB_APP_GROUP_NAME(UTF8_STRING) = "evince"
_OB_APP_CLASS(UTF8_STRING) = "Evince"
_OB_APP_NAME(UTF8_STRING) = "evince"
_OB_APP_ROLE(UTF8_STRING) = 
_NET_WM_VISIBLE_ICON_NAME(UTF8_STRING) = "Documenti recenti"
_NET_WM_VISIBLE_NAME(UTF8_STRING) = "Documenti recenti"
WM_HINTS(WM_HINTS):
		Client accepts input or input focus: True
		Initial state is Normal State.
		bitmap id # to use for icon: 0x140002c
		bitmap id # of mask for icon: 0x1400033
		window id # of group leader: 0x1400001
_GTK_THEME_VARIANT(UTF8_STRING) = 
GDK_TIMESTAMP_PROP(GDK_TIMESTAMP_PROP) = 0x61
XdndAware(ATOM) = BITMAP
_NET_WM_ICON(CARDINAL) = 	Icon (48 x 48):
	(not shown)

_GTK_WINDOW_OBJECT_PATH(UTF8_STRING) = "/org/gnome/Evince/window/1"
_GTK_APPLICATION_OBJECT_PATH(UTF8_STRING) = "/org/gnome/Evince"
_GTK_UNIQUE_BUS_NAME(UTF8_STRING) = ":1.61"
_GTK_APPLICATION_ID(UTF8_STRING) = "org.gnome.Evince"
_NET_WM_OPAQUE_REGION(CARDINAL) = 0, 0, 600, 600
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x0, 0x0, 0x0, 0x0
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 20971530, 20971531
_NET_WM_USER_TIME(CARDINAL) = 1142758
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x1400009
WM_CLIENT_LEADER(WINDOW): window id # 0x1400001
_NET_WM_PID(CARDINAL) = 3658
WM_LOCALE_NAME(STRING) = "it_IT.UTF-8"
WM_CLIENT_MACHINE(STRING) = "linux"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		program specified minimum size: 278 by 85
		program specified base size: 0 by 0
		window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "evince", "Evince"
WM_ICON_NAME(STRING) = "Documenti recenti"
_NET_WM_ICON_NAME(UTF8_STRING) = "Documenti recenti"
WM_NAME(STRING) = "Documenti recenti"
_NET_WM_NAME(UTF8_STRING) = "Documenti recenti"

I added "export GDK_CORE_DEVICE_EVENTS=1" but it doesn't solve the problem.
however, then I discovered that it was my theme's fault, by setting another theme I can resize evince. Maybe there is something wrong with the gtk3 style.
my theme:
https://we.tl/t-ksrAbpLllI
Can anyone fix it?

Last edited by quellen (2024-04-26 16:18:33)


sorry for my bad english

Offline

#5 2024-04-26 16:29:18

seth
Member
Registered: 2012-09-03
Posts: 51,727

Re: [SOLVED] evince: unable to resize window

_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x0, 0x0, 0x0, 0x0

This will strip the decoration and leave you w/ the CSD, ie. evince is responsible for triggering the resize, not your WM.
Afair openbox has a setting to ignore that and put a frame around the window nevertheless - and I guess you're aware of alt+rmb?
Or in this case, the particular theme.

Is that your personal, custom theme or is there an upstream to that?

Online

#6 2024-04-26 16:40:08

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 297

Re: [SOLVED] evince: unable to resize window

seth wrote:

_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x0, 0x0, 0x0, 0x0

This will strip the decoration and leave you w/ the CSD, ie. evince is responsible for triggering the resize, not your WM.
Afair openbox has a setting to ignore that and put a frame around the window nevertheless - and I guess you're aware of alt+rmb?
Or in this case, the particular theme.

Is that your personal, custom theme or is there an upstream to that?

thanks, I didn't know "alt+mouse right button", it works!
It's a customizing theme that I created by copying from other themes and changing the colors.


sorry for my bad english

Offline

#7 2024-04-26 16:44:07

seth
Member
Registered: 2012-09-03
Posts: 51,727

Re: [SOLVED] evince: unable to resize window

Do the themes you used as base work?

Online

#8 2024-04-26 16:57:01

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 297

Re: [SOLVED] evince: unable to resize window

seth wrote:

Do the themes you used as base work?

I no longer remember what themes they were...
however I have now found one called Goldy-Dark-GTK that seems to work. I copied the gtk-3.0 and assets folders into my theme and I think I solved it.
https://www.gnome-look.org/p/2037367/


sorry for my bad english

Offline

#9 2024-04-26 19:54:19

seth
Member
Registered: 2012-09-03
Posts: 51,727

Re: [SOLVED] evince: unable to resize window

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB