Author Topic: Arch Linux: Possible graphical bug?  (Read 2234 times)

Offline olorin92

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Arch Linux: Possible graphical bug?
« Reply #15 on: October 01, 2018, 04:04:31 PM »
Hitting T never does anything you gotta hit t. :)
Problem solved! ;)

But in all seriousness, I hadn't thought of that! Alas my shortcuts don't seem to be working still - some seem to work (like the function keys) but copy/paste and timing marks still seem to be doing nothing.

Perhaps I should build from the repo and see if I get any joy running directly from there...

EDIT: Timing marks seem to be working properly now! Now to figure out why it refuses to copy/paste...
« Last Edit: October 01, 2018, 04:11:07 PM by olorin92 »

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Arch Linux: Possible graphical bug?
« Reply #16 on: October 01, 2018, 05:07:25 PM »
I don't know if it'll solve all your problems but try closing Xlights and then delete your key binding file from your show folder then reopen Xlights.

Did you try this advice?

Offline olorin92

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Arch Linux: Possible graphical bug?
« Reply #17 on: October 01, 2018, 05:08:52 PM »
I don't know if it'll solve all your problems but try closing Xlights and then delete your key binding file from your show folder then reopen Xlights.

Did you try this advice?

Sorry just realised I didn't explicitly state that - yes I did remove the bindings xml file. So my timings seem to be working properly now, just not copy/paste. I'll keep looking and see if there's any obvious reason why that is though

Offline keithsw1111

  • Administrator
  • Hero Member
  • *****
  • Posts: 2733
    • View Profile
    • Kellyville Christmas Lights
Re: Arch Linux: Possible graphical bug?
« Reply #18 on: October 01, 2018, 06:28:40 PM »
Copy and paste do not refer to the keybindings.


Sent from my iPhone using Tapatalk

Offline olorin92

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Arch Linux: Possible graphical bug?
« Reply #19 on: October 01, 2018, 06:31:46 PM »
Copy and paste do not refer to the keybindings.


Sent from my iPhone using Tapatalk

Ok so potentially something related to the graphical issues I'm getting, given that seems to be specific to my setup. I think I’ll do a build and see if I get any joy, if I do then there must be something weird with the way the AppImage is packaged and my environment.

If not, then just my environment!
« Last Edit: October 01, 2018, 06:52:43 PM by olorin92 »

Offline olorin92

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Arch Linux: Possible graphical bug?
« Reply #20 on: October 01, 2018, 11:41:25 PM »
Ok finally got the depencies right on my machine to do the build successfully. After running the built binary, it seems to display the graphics fine, without having to use the dedicated graphics card.

Copy/Paste still isn't working, but I'm happy at least that the graphics seem to work properly now.

I do suspect this means there is something in the AppImage build process that my machine doesn't like. Finding out what that is might be the next step I suppose!

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Arch Linux: Possible graphical bug?
« Reply #21 on: October 02, 2018, 06:58:01 AM »
Linux sure seems like a troublesome OS and when I tried it I found it a pain that every program you wanted to use you had to figure out if it was compatible with the 8000 versions of Linux.  I just don't get love for that OS.

Offline olorin92

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Arch Linux: Possible graphical bug?
« Reply #22 on: October 02, 2018, 02:19:18 PM »
Linux sure seems like a troublesome OS and when I tried it I found it a pain that every program you wanted to use you had to figure out if it was compatible with the 8000 versions of Linux.  I just don't get love for that OS.

Yep I can understand that view, some of us are masochists ;) but to  be fair some things I’ve just found so much easier on a Linux box than windows - dev related setups especially

Offline olorin92

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Arch Linux: Possible graphical bug?
« Reply #23 on: October 02, 2018, 05:30:04 PM »
OK so I think I've found the issue. The switch statement that is used to process the normal key bindings for copy and paste seems to depend on the preprocessor symbol __WXMSW__ being present - looking this up here: https://docs.wxwidgets.org/3.0/page_cppconst.html seems to suggest this will only be present when using Windows controls in the GUI - which I'm assuming won't be the case when using Linux?

I'm happy to fiddle with this and alter the code to handle my scenario (once I figure out what preprocessor symbol is actually present), then create a pull request if that helps?
« Last Edit: October 02, 2018, 05:38:38 PM by olorin92 »

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Arch Linux: Possible graphical bug?
« Reply #24 on: October 03, 2018, 07:22:05 AM »
I don't see where you mentioned exactly what you are trying to copy/paste.  I can tell you those wxWidgets docs probably have nothing to do with how our code works because we are capturing the keystrokes and executing copy/paste inside our code its not handled by wxWidgets.

Offline dkulp

  • Supporting Member
  • Hero Member
  • *
  • Posts: 812
    • View Profile
Re: Arch Linux: Possible graphical bug?
« Reply #25 on: October 03, 2018, 08:27:46 AM »
OK so I think I've found the issue. The switch statement that is used to process the normal key bindings for copy and paste seems to depend on the preprocessor symbol __WXMSW__ being present - looking this up here: https://docs.wxwidgets.org/3.0/page_cppconst.html seems to suggest this will only be present when using Windows controls in the GUI - which I'm assuming won't be the case when using Linux?

I'm happy to fiddle with this and alter the code to handle my scenario (once I figure out what preprocessor symbol is actually present), then create a pull request if that helps?

Umm.. where are you looking?   The MainSequencer::OnChar method that handles the copy/paste keys doesn't have a single #ifdef in it.
Daniel Kulp
Framingham, MA

Offline olorin92

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Arch Linux: Possible graphical bug?
« Reply #26 on: October 03, 2018, 11:16:54 AM »
Sorry - I'm doing the copy and paste in the layout view, not the sequencer. I'm attempting to copy and paste a model

Offline olorin92

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Arch Linux: Possible graphical bug?
« Reply #27 on: October 03, 2018, 11:22:56 AM »
I don't see where you mentioned exactly what you are trying to copy/paste.  I can tell you those wxWidgets docs probably have nothing to do with how our code works because we are capturing the keystrokes and executing copy/paste inside our code its not handled by wxWidgets.

The keystrokes are being handled yes, but part of that handling (including the copy paste functionality) is wrapped in that ifdef - and the preprocessor symbol it's look for (at least for me) isn't present. The cases of the switch statement that handle the copy paste don't even get hit because the symbol is missing. If I remove that ifdef for instance, it works properly (not saying this is the solution, but that it's definitely causing it to not work).

I was trying to figure out why that ifdef was there as, like you said, the functionality in the switch statement doesn't seem like it would be broken without it because it's being done outside of wxWidgets
« Last Edit: October 03, 2018, 12:00:24 PM by olorin92 »

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Arch Linux: Possible graphical bug?
« Reply #28 on: October 03, 2018, 11:56:11 AM »
If would be best if you list filenames and line numbers when you start trying to describe a section of code.  When you say something like "the cases of the switch statement" I have no idea what code you are staring at.

Normally a copy/paste is done by clicking on the model's picture and not it's name in the list.  Which way are you trying to do it?  I'm just finding it hard to believe you are the first Linux user to ever try to copy a model.

Offline dkulp

  • Supporting Member
  • Hero Member
  • *
  • Posts: 812
    • View Profile
Re: Arch Linux: Possible graphical bug?
« Reply #29 on: October 03, 2018, 12:00:28 PM »

I was trying to figure out why that ifdef was there as, like you said, the functionality in the switch statement doesn't seem like it would be broken without it because it's being done outside of wxWidgets

It likely should be an "#if !defined(__WXOSX__)"

On the Mac, the Copy/Cute/Paste is handled by those menu items on the main menu.   The accelerators kick in and call the appropriate methods.   Thus, without the ifdef, we ended up getting double pastes.   

Daniel Kulp
Framingham, MA